Starting Angular FrontEnd
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
var aboutCtrl = angular.module('aboutCtrl', []);
|
||||
|
||||
aboutCtrl.controller('AboutCtrl', ['$scope', function($scope) {
|
||||
$scope.about = "this is about YLT";
|
||||
}]);
|
||||
@@ -0,0 +1,10 @@
|
||||
var dashboardCtrl = angular.module('dashboardCtrl', ['resultsFactory']);
|
||||
|
||||
dashboardCtrl.controller('DashboardCtrl', ['$scope', '$routeParams', 'Results', function($scope, $routeParams, Results) {
|
||||
$scope.dashboard = "this is a dashboard";
|
||||
$scope.runId = $routeParams.runId;
|
||||
Results.get({runId: $routeParams.runId}, function(result) {
|
||||
$scope.result = result;
|
||||
console.log(result);
|
||||
});
|
||||
}]);
|
||||
@@ -0,0 +1,5 @@
|
||||
var indexCtrl = angular.module('indexCtrl', []);
|
||||
|
||||
indexCtrl.controller('IndexCtrl', ['$scope', function($scope) {
|
||||
$scope.toto = "Achraf";
|
||||
}]);
|
||||
Reference in New Issue
Block a user