I'm decoupling some components and I'm not sure when to create a controller linked to the template.
I have for example the Login screen, in my directive I do:
app.directive('appLogin',function(){
return{
scope: {},
restrict:'E',...
asked by
20.04.2016 / 16:30