It is a little similar to $timeout.But the $interval keeps executing a service at certain interval whereas the timeout executes it once and for all.
Q2 . What is routing in AngularJS?
SOLUTION
The ngRoute is used to route a application to different pages and can be used to put the data in a view directive.
Q3 . What is a template in AngularJS?
SOLUTION
Templates are HTML based AngularJS components that are used to render dynamic views.
Q4 . what appllications benefit from AngularJS?
SOLUTION
SPA(single page applications) that would want to display a single page but the content would keep changing based on the business logic would benefit from AngularJS.
Q5 . How to include other files in AngularJS?
SOLUTION
We can use ng-include to include other files.
For example we can use ng-include="testfile.html".
Q6 . How to check if a value is a string in AngularJS?
SOLUTION
isNumber() is used to check if the passed parameter is a number or not and return a true or false answer.
Example isNumber($scope.variabl1)
Q7 . How to check if a value is a number in AngularJS?
SOLUTION
isNumber() is used to check if the passed parameter is a number or not and return a true or false answer.
Example isNumber($scope.variabl1)
Q8 . How to use a dropdown list in AngularJS?
SOLUTION
<select ng-options="x for x in options" ng-model="highlighted">