Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <div ng-app="myApp">
  2. <input type="text" ng-model="message" />
  3. <h1>{{ message }}</h1>
  4. <div ng-controller="ctrlOne">
  5. <input type="text" ng-model="message" />
  6. <h1>{{ message }}</h1>
  7. </div>
  8. <div ng-controller="ctrlTwo">
  9. <input type="text" ng-model="message" />
  10. <h1>{{ message }}</h1>
  11. </div>
  12. </div>
  13.  
  14. var app = angular.module("myApp", []);
  15.  
  16. app.controller("ctrlOne", function($scope) {
  17. console.dir($scope);
  18.  
  19. });
  20. app.controller("ctrlTwo", function($scope) {
  21. console.dir($scope);
  22.  
  23. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement