Angular JS is popular because it isolates the application logic from the user interface layer and supports separation of concerns. The controller receives all requests for the application and then works with the model to prepare any data needed by the view. The view then uses the data prepared by the controller to generate a final presentable response.
The angular js controller capabilities
- Multiple Controllers
- Complex Objects
- Nest Controllers
<body ng-app>
<h1>Hello Angular Developer</h1>
<div ng-conroller="DateController">
Current time is : {{date}}
</div>
<div ng-conroller="QuoteController">
Stock:{{stock.symbol}}<br/>
Price:{{stock.price}}<br/>
<div ng-conroller="ChartController">
<img src="{{chart.Source}}" alt="{{chart.description}}">
</div>
</div>
</body>
0 comments:
Post a Comment