UNIT2- awp
UNIT2- awp
• Model: Manages data and logic, responding to requests from the view and instructions
from the controller.
• View: Displays application data to users.
• Controller: Coordinates interactions between the view and the model, updating the model
in response to user input.
2.Data transformation and filters:
• Strong filters are available in AngularJS for modifying data before it is displayed in
templates. Currency, orderBy, and filter are examples of common filters.
3.Single-Page Applications (SPAs) and Routing:
• In AngularJS, the Model represents both the data structure and the business logic. Its
responsibilities include retrieving, storing, and altering data.
2. View in AngularJS.
• The View is responsible for presenting data to the user. It consists of HTML templates
that include AngularJS directives and expressions.
3. Controller in AngularJS.
• The Controller in AngularJS serves as a bridge between the Model and the View. It accepts
user input and modifies the View accordingly.
3.How can you integrate AngularJS with HTML? 03
ANS:
<body ng-app="myApp">
<h1>Welcome to AngularJS</h1>
</body>
</div>
example : Example: