Hello, I've hit a roadblock while trying to troubleshoot an issue with my project. Oddly enough, ng-click has suddenly stopped functioning.
Here are my routes
$stateProvider
.state('index', {
url: '/',
templateUrl: 'templates/dashboard.html'
})
.state('tables', {
url: '/tables',
templateUrl: 'templates/tables.html',
controller: 'MasterCtrl'
});
The controller function is as follows
angular.module('module')
.controller('MasterCtrl', ['$scope', '$cookieStore', MasterCtrl]);
function MasterCtrl($scope, $cookieStore) {
$scope.doSomething = function(){
alert("HEYYYY");
};
}
Also, here is the HTML button causing the trouble
< button ng-click="doSomething()">clickMe!< /button>
I'm puzzled as to why it's not working anymore, especially since it was functional earlier this week.
Any input or suggestions would be greatly appreciated!
Thank you