Prev. To use the service inside a filter, add it as a dependency when defining the filter: The service hexafy used in Next. Angularjs: How to filter the date. It is used for making Single Page Applications(SPA). B - filter filter is used to filter the array to a subset of it based on provided criteria. We can see that the button Increment is displayed and the value of the count variable is initially zero. We are first using the ng-init directive to set the value of a local variable count to 0. Wiki For up to date information please refer to the Wiki FAQ. 2. Important for what? The ng-controller directive defines the application controller. AngularJS modifies the