mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
11 lines
469 B
JavaScript
11 lines
469 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('scopeExample', [])
|
|
.controller('MyController', ['$scope', function($scope) { // Scope
|
|
$scope.username = 'World'; // Scope, ScopeProperty
|
|
|
|
$scope.sayHello = function() { // Scope, ScopeProperty
|
|
$scope.greeting = 'Hello ' + $scope.username + '!'; // Scope, ScopeProperty
|
|
};
|
|
}]);
|