Angular js is mainly used to build single page application . It is based on MVC architecture.
- model
The form fields act as model , we need to use ng-model attribute to specify the model name.
- view
The HTML page is the view , which is being displayed to the user
- controller
We can create a JavaScript function which will be the controller
There are 3 most important components of angular js.
- application
- controller
- service
Common Errors:
Error: [$injector:unpr] Unknown provider: myServiceProvider
When you see this error you need to check if have my service defined for your application.
Click on the buttons inside the tabbed menu:Error: [$injector:unpr] Unknown provider: myServiceProvider
When you see this error you need to check if have my service defined for your application.
angular.module("home",home);
var home=function (){
}
No comments:
Post a Comment