Ajout exo Karma

This commit is contained in:
2015-04-10 00:30:02 +02:00
committed by Benjamin Bohard
parent 67b56e88ec
commit 361715d79e
16 changed files with 227 additions and 5 deletions

View File

@ -0,0 +1,12 @@
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;
};
}]);