# Category: html

## Found function in a project of a senior frontend develop in an ongoing project. Performance?

with code below, how perfomance for angular 4? i’m confused reading this code to fix bug. final i delete all function. Source: AngularJS

## AngularJS uibModal is invisible

I created a uibModal that should open when a button is pressed. And as far as I can see in the browser Inspector it opens. The problem is, it is invisible. If I change the .fade opacity through the Browser from 0 to 1 the Modal is displayed. But that does not help me for my code. in the index.html I have following included. <link rel=”stylesheet” href=”css/bootstrap.css”> <script src=”bower_components/angular/angular.js”></script> <script src=”bower_components/angular-route/angular-route.js”></script> <script src=”bower_components/angular-animate/angular-animate.js”></script> <script src=”bower_components/angular-bootstrap/ui-bootstrap-tpls.js”></script> […]

## How to validate these special characters in AngularJS?

What is an appropriate ng-pattern for disallowing /:*?”<>| I’ve tried so many different approaches. Source: AngularJS

## Modal not popping up in bootstrap.When I clicked "Learn more" modal is not opening up ?Can someone tell me where i went wrong

I have provided the code below and Plunkr link as well.Modal doesn’t display properly when I click the “Learn more” button the issue araises.Can someone tell me where exactly I went wrong.The details are provided below.Well, how about adding more details. Like, what are you trying to accomplish, how are you doing it, what difficulties you have found with the approach, another approaches you have tried, etc. In summary, without code isn’t a good question […]

## Display elements in scope in angularjs page

Hy everybody, first question here. I’m learning angularjs and right now i’m stuck on “Controller and Scope” chapter. I’m trying to search trough an array of objects and show items that match my query; unfortunately my screen stays blank. Here’s my code: <!DOCTYPE html> <html ng-app=””> <head> <title>Search and print with Scope</title> </head> <body> <div ng-controller=”Controller”> <input type=”search” ng-model=”q” placeholder=”CPU” /> <ul> <li ng-repeat=”proc in cpu | filter:q”> {{proc.house}} – {{proc.model}} </li> </ul> </div> <script […]

## Html input max length makes the text area to be 0

I am using a directive to handle decimal functionality in my html input box as well as i have given the max length for the input type of number to be 5 when i type a value more than 5 digits the existing value in the text box becomes zero can anyone tell me why it occurs or how could i avoid this. Decimal Directive: ‘use strict’; angular.module(‘main’) .directive(‘decimalpoint’, function (CommonService) { ‘use strict’; return […]