Add remove Class with ngClass in AngularJS

With ngClass directive, it is easier to maintain CSS classes between HTML elements dynamically.

You cannot just pass the class name in ng-class like class attribute.

You need to either use the $scope variable or expression for including classes on the element.

In this tutorial, I show how you add and remove class using ngClass in AngularJS.

Add remove Class with ngClass in AngularJS

Read more

Check if Checkbox is Checked or Not with AngularJS

In AngularJS with the model, it is easier to maintain values across elements and to define the model ng-model directive is been used.

To find a checkbox is been checked or not check the defined model. If it is TRUE means checkbox is been checked.

In this tutorial, I will show how you can retrieve single or multiple checked checkboxes.

Check if Checkbox is Checked or Not with AngularJS

Read more

Table with Search and Sort using AngularJS and PHP

Search filter makes easier to filter the list of records and view the only required records. This saves time when there is a huge number of records are available on the list.

There is already an orderBy filter is available on AngularJS which will be used for sorting the list.

In this tutorial, I am filtering MySQL table records while fetching data using AngularJS and PHP.

Table with Search and Sort using AngularJS and PHP

Read more