Filtering is really easy in Angular JS. In Angular JS we use the “filter” keyword to do the filtering. Example Copy and paste the above code in an html and run. You will see the result. Here we have a variable named “my_search” which is a textbox in HTML. so the filter value is taken… Read More »
You can use the ng-bind directive, which will bind the innerHTML of the element to the specified model property: Method 1 Method 2 Complete Example
With the ng-model directive you can bind the value of an input field to a variable created in AngularJS. Here we will have two input fields which will bind to two variables in Angular JS. Example Just copy paste the above code to your editor and save in html and see the result.
Angular JS modules means : An AngularJS module defines an application. The module is a container for the different parts of an application like controller, services, filters, directives etc. The module is a container for the application controllers. Controllers always belong to a module. Example Here we have a module named “MyApp” and controller for… Read More »
Here is a comprehensive list of Angular JS Directives. Directive Description ng-app It defines the root element of an application. ng-bind It binds the content of an html element to application data. ng-bind-html Itbinds the innerhtml of an html element to application data, and also removes dangerous code from the html string. ng-bind-template It specifies… Read More »
AngularJS provides filters to transform data: currency Format a number to a currency format. date Format a date to a specified format. filter Select a subset of items from an array. json Format an object to a JSON string. limitTo Limits an array/string, into a specified number of elements/characters. lowercase Format a string to lower… Read More »