mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
17 lines
693 B
JavaScript
17 lines
693 B
JavaScript
// Adapted from the AngularJS Developer Guide (https://docs.angularjs.org/guide),
|
|
// which is licensed under the MIT license; see file LICENSE in parent directory.
|
|
angular.module('docsIsolationExample', [])
|
|
.controller('Controller', ['$scope', function($scope) { // Scope
|
|
$scope.naomi = { name: 'Naomi', address: '1600 Amphitheatre' }; // Scope, ScopeProperty
|
|
$scope.vojta = { name: 'Vojta', address: '3456 Somewhere Else' }; // Scope, ScopeProperty
|
|
}])
|
|
.directive('myCustomer', function() {
|
|
return {
|
|
restrict: 'E',
|
|
scope: { // ScopeOption
|
|
customerInfo: '=info' // ScopeProperty, ExplicitScopeOptionPropertyKey
|
|
},
|
|
templateUrl: 'dev-guide-6-template.html'
|
|
};
|
|
});
|