This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html ng-app> | |
| <head> | |
| <meta charset="utf-8"> | |
| <script src="https:ajax.googleapis.com/ajax/libs/angularjs/1.2.5/angular.js"></script> | |
| <title>Ng If and show and hide</title> | |
| </head> | |
| <body> | |
| <div ng-if = "2 + 2 == 4"> | |
| Hi, I do exist. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html ng-app> | |
| <head> | |
| <meta charset="utf-8"> | |
| <script src="https:ajax.googleapis.com/ajax/libs/angularjs/1.2.5/angular.js"></script> | |
| <title>Ng Switch</title> | |
| </head> | |
| <body> | |
| <div ng-switch on="person.name"> | |
| <input type="text" ng-model = "person.name" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html ng-app="myApp"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Directives with Child Scope</title> | |
| <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.5/angular.js"></script> | |
| </head> | |
| <body> | |
| <h1> Copy by Value Block </h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html ng-app="myApp"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Delay Binding Example</title> | |
| <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.5/angular.js"></script> | |
| </head> | |
| <body> | |
| <h1> HREF DEMO </h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.5/angular.js"> </script> | |
| </head> | |
| <body ng-app ="myApp"> | |
| <div ng-controller ="disableController"> | |
| <h2> Disable Implementation</h2> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html ng-app="myApp"> | |
| <head> | |
| <title>Directive with paramers</title> | |
| <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.5/angular.js"></script> | |
| </head> | |
| <body> | |
| <input type="text" ng-model="myUrl" val="google"> </input> | |
| <div my-directive some-attr = "{{ myUrl }}" my-link-text="google"></div> | |
| <script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html ng-app="myApp"> | |
| <head> | |
| <title>Two way binding of Directives</title> | |
| <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.5/angular.js"></script> | |
| </head> | |
| <body> | |
| <input type="text" ng-model="outerScopeUrl" > </input> | |
| <div my-directive some-attr = "outerScopeUrl" my-link-text="google"></div> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html ng-app="myApp"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Current Scope Introduction </title> | |
| <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0-rc.3/angular.js"></script> | |
| <style> | |
| #parentCtrl { | |
| background-color: yellow; | |
| padding: 10px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Simple Expressions with Directive</title> | |
| <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.5/angular.js"></script> | |
| </head> | |
| <body ng-app="myApp"> | |
| <input ng-model ="g" type="text" ></input> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>My Replacable Directive</title> | |
| <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.5/angular.js"></script> | |
| </head> | |
| <body ng-app="myApp"> | |
| <my-directive></my-directive> | |