-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Modal - Add bindToController #3404
Comments
First we need to see if we want to break compatibility with 1.2.x |
I think we've already broken compatibility with 1.2.x with the ngAnimate changes. |
+1 |
I receive them on controller constructor function. As I use TypeScript, I'm able to prefix them with either Isn't your use case covered by means of constructor function parameters? Or perhaps I'm missing something? |
+1 for this. |
+1 |
+1 As we have Angular 2.0 coming it's generally recommended not to use $scope anymore and prefer bindToController for directives. The absence of bindToController is frustrating and painful. |
I'll take a look at implementing this tomorrow. |
It would be nice to have a bindToController option for the $modal service. This would allow resolves to be bound to the controller instead of the scope much like it does in directives in Angular 1.3.
See the Angular documentation for bindToController:
https://docs.angularjs.org/api/ng/service/$compile
The text was updated successfully, but these errors were encountered: