mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
22 lines
680 B
JavaScript
22 lines
680 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('docsScopeProblemExample', [])
|
|
.controller('NaomiController', ['$scope', function($scope) { // Scope
|
|
$scope.customer = { // Scope, ScopeProperty
|
|
name: 'Naomi',
|
|
address: '1600 Amphitheatre'
|
|
};
|
|
}])
|
|
.controller('IgorController', ['$scope', function($scope) { // Scope
|
|
$scope.customer = { // Scope, ScopeProperty
|
|
name: 'Igor',
|
|
address: '123 Somewhere'
|
|
};
|
|
}])
|
|
.directive('myCustomer', function() {
|
|
return {
|
|
restrict: 'E',
|
|
templateUrl: 'dev-guide-4-template.html'
|
|
};
|
|
});
|