In angularjs
I have made sure to register a service like this, inside the services directory inside modules -> module_name
angular.module('module_name').factory('service_name', [
function() {
// Public API
console.log('hello');
return {
someMethod: function() {
return true;
}
};
}
]);
from this Error: Unknown provider: employeesProvider <- employees i found removing the ngController solves the issue, but I am trying to render a view that must have a controller to render some model data.
If i remove that ngController, i get no data.
What do i do?