-
Notifications
You must be signed in to change notification settings - Fork 27.5k
templateUrl not working in directive if ngModel is required (1.2.0-rc.3) #4434
Comments
I'm also getting this exception in all my directives which make use of ngModel, but unfortunately I'm not able to reproduce this exception in a Plunker |
I get a $compile:ctreq error when creating an isolated scope with a parameter named ngModel, e.g. , even when not declaring a "require" argument in the directive options http://plnkr.co/edit/HSmOWB0DTNUmSG18FpyK?p=preview Only happens in 1.2.rc3 |
plunker for the original issue: http://plnkr.co/edit/aINJ8oV3BkuKBbpmH4ix?p=preview but we also need to investigate @lhorie's case because at first glance it doesn't make sense for this kind of error to be thrown there. |
I created the issue in Plunker: http://plnkr.co/edit/ZzNTVp |
Seeing the same issue as @Hacklone on 1.2.0-rc.3 |
When we re-enter compilation either due to async directive templates or element transclude directive we need to keep track of controllers to instantiate during linking. This piece of info was missing when re-entering compilation and that's what this commit fixes. I also reordered the properties in the previousCompileContext object. Closes angular#4434
When we re-enter compilation either due to async directive templates or element transclude directive we need to keep track of controllers to instantiate during linking. This piece of info was missing when re-entering compilation and that's what this commit fixes. I also reordered the properties in the previousCompileContext object. Closes angular#4434 Closes angular#4616
When we re-enter compilation either due to async directive templates or element transclude directive we need to keep track of controllers to instantiate during linking. This piece of info was missing when re-entering compilation and that's what this commit fixes. I also reordered the properties in the previousCompileContext object. Closes angular#4434 Closes angular#4616
i am facing the problem in ng-routing ... when i call the links through directive and click the link to change the view but url has changed but page is same..here is below code 👍 MyApp.directive('rightsidemenu', function(){
return{
restrict: "AE",
templateUrl:"view/right-side.html"
}
}); directive html code : .when("/ng-directive",{templateUrl:'view/study/angularjs/use-of-driective.html', controller:'commonCont'})
.when("/ajax-function",{templateUrl:'view/study/ajax/ajax-function-in-jquery.html', controller:'commonCont'})
.when("/classRoom",{templateUrl:'view/study/angularjs/use-of-driective.html', controller:'commonCont'}) |
@santosh-k1, it is not clear what your code does. If you think this is a bug with Angular, please open a new issue, explaining the issue and preferrably providing a live demo (e.g. using CodePen, plnkr etc). |
templateUrl not working in directive if ngModel is required
I copied the same content in template and it worked.
Corresponding error: http://errors.angularjs.org/undefined/$compile/ctreq?p0=ngModel&p1=vatNumberInfo
Plunker: http://plnkr.co/edit/ZzNTVp
The text was updated successfully, but these errors were encountered: