Professional Documents
Culture Documents
1. Data-binding :
2. Scope :
3. Controller :
4. Services :
5. Filters :
6. Dependency Injection :
7. Routing :
8. Templets :
9. Directives :
10. Deep linking :
• The ng-app directive initializes an
AngularJS application and it defines
the root element of an AngularJS, this
directive will auto-bootstrap (automatically
initialize) the application when a web page
is loaded.
<script>
var app = angular.module("myApp", []);
app.controller("myCtrl", function($scope) {
$scope.firstName = "John";
$scope.lastName = "Doe";
});
</script>
<form ng-app="" name="myForm">
Email:
<input type="email" name="myAddress" ng-model="text">
<span ng-show="myForm.myAddress.$error.email">Not a valid
e-mail address</span><br><br>
You have entered:{{text}}
</form>
• The ngRoute module routes your application to
different pages without reloading the entire
application.
<script>
angular.module('myApp', []).controller('personCtrl',
function($scope) {
$scope.firstName = "John",
$scope.lastName = "Doe"
});
</script>
1. Directives Expression
2. Services
3. Routing
4. Forms
5. Filters
6. Modules, Controllers, & Scope
https://replit.com/@FakhruddinBasha/Angular#index.html