se-hub/templates/js/controllers/tasksController.js

14 lines
428 B
JavaScript
Raw Normal View History

angular.module('SeHub')
.controller('tasksController', ['$scope', '$cookies', '$cookieStore', '$window', '$location', '$mdToast', '$mdDialog', 'apiService', '$rootScope', function ($scope, $cookies, $cookieStore, $window, $location, $mdToast, $mdDialog, apiService ,$rootScope)
{
console.log("in controller");
$scope.createTaskClicked = function()
{
2015-06-24 10:42:32 +00:00
$location.path("/tasks/new"); // Reference to 'newTask' page
}
}]);