13 lines
226 B
JavaScript
13 lines
226 B
JavaScript
|
var myApp = angular.module('myApp', []);
|
||
|
|
||
|
myApp.controller('ExoCtrl', ['$scope', function($scope) {
|
||
|
|
||
|
$scope.val1 = 1;
|
||
|
$scope.val2 = 2;
|
||
|
|
||
|
$scope.add = function() {
|
||
|
$scope.result = $scope.val1 + $scope.val2;
|
||
|
};
|
||
|
|
||
|
}]);
|