-
Notifications
You must be signed in to change notification settings - Fork 6.7k
$UIModal TypeError: ctrlInstantiate is not a function - 1.7.1 Bower Angular #6708
Comments
That's what you get when you use a private api. I see there is no |
Filed an issue with angularjs angular/angular.js#16598 |
Hi, I am not sure what happened in my project. This is happening to me too. Can I just force an old version to fix the issue ? But what ? |
Hi, Angularjs will fix this in 1.7.2 (angular/angular.js#16594). For now I just fixed "angular": "1.7.0" in my bower.json en did a |
Correct, you need to go back. I have a log for each test I run so I was able to get a list of all previous version, this was caused by the release of angular 1.7.1 |
Thanks, I am trying in bower.json: "resolutions": { but something keeps installing angular 1.7.1 |
Yeah, for example angular-bootstrap itself asks for angular ^1.4.0, which resolves to 1.7.1. I removed the resolution for angular, and then did
Bower asks for which resolution to use, and you take the one explicitly mentioned. The exclamation mark says "save this". Bower.json looks the same as above afterwards, but then angular 1.7.0 is installed. If this does not help, just remove bower_components/angular and do bower install. |
Try using angular-bootstrap: 1.3.3 That is working for me. |
thanks a lot! I got it to work now. |
@jelmerjellema what will be the latest version that works with 1.7.0? I guess is better than having an old like our project. |
What do you mean? The newest version of ui-bootstrap works with 1.7.0 |
TY, that's it. |
Angular 1.7.2 has been released now |
Can confirm - works with |
There is no
later
option:ctrlInstantiate = $controller(modalOptions.controller, ctrlLocals,
true
, modalOptions.controllerAs);https://github.com/angular/bower-angular
1.7.1 has no later :(
PLEASE READ
As per the README, this project is no longer being maintained. Any issues entered will remain uninvestigated and unresolved.
We thank you for your contributions over the years. This library would not have been successful without them.
The text was updated successfully, but these errors were encountered: