Category Archives: Angular JS

ng-repeat Simple Demo in Angular JS with filter

By | September 15, 2017

ng-repeat. Example Now we will do a filter Search Filter In the above example if we want to search by country we will modify the code like below will search in country fields of the employees only and the boolean value from the checkbox will look for the exact match from the checkbox. Complete Example

How to do a List filtering in Angular JS?

By | August 20, 2017

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 »

What is Scope and RootScope in Angular JS? with examples

By | August 10, 2017

Scope Scope is the binding part between the HTML (UI) and the Javascript (the Controller). Scope object contains the available properties and methods. Scope is accessible in both HTML and Javascript. Scope Example Root Scope Root Scope is created on the HTML element that contains the ng-app directive Root Scope is available for the entire… Read More »

What are Angular JS modules? – A Simple Demo

By | July 15, 2017

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 »

Angular JS Directives in Short.

By | July 10, 2017

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 »

Built In Filters and Custom Filters in Angular JS

By | April 20, 2017

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 »