I'm having trouble creating a directive at the following point.
I have a list of data, and in this list I have a controller callController, and in this list page I have a modal that calls a template made with the directive:
angular.module('app.directives')
.directive('formCall', function(appAngularConfig) {
return {
templateUrl: appAngularConfig.baseUrl + "/build/js/views/templates/__form_call.html",
restrict: "E"
}
});
I have another controller that calls editController and it has a function responsible for calling the modal and popular the inputs that are in modal come via template by the directive, but it does not work I realize that the editController does not "see" the ng-model of the template. Now if I put in the same controller where the modal this is the callController works normally.
Look at the directive:
angular.module('app.directives')
.directive('formCall', function(appAngularConfig) {
return {
templateUrl: appAngularConfig.baseUrl + "/build/js/views/templates/__form_call.html",
restrict: "E",
}
});
Ha of scope as false and nothing.