Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- angular.module('example', [])
- .controller('ExampleController', ['$scope', function($scope) {
- $scope.heading = 'Some Value';
- $scope.complexModel = {...}
- }]);
- </script>
- <div ng-controller="ExampleController">
- <h1>{{ heading }}</h1>
- <div ng-some-directive='complexModel.to.long.really.annoying'>
- {{ variable }} // Actually coming from complexModel.to.long.really.annoying.variable
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement