feat(upgrade): support bindToController with binding definitions#4784
feat(upgrade): support bindToController with binding definitions#47840x-r4bbit wants to merge 1 commit intoangular:masterfrom
Conversation
|
@PascalPrecht good catch, could you give the implementation a try? |
|
@mhevery I can try but surely need some guidance. Oh and earliest after AngularConnect :) |
b71c324 to
0e34b7a
Compare
|
@mhevery this is ready for review. /cc @IgorMinar |
0e34b7a to
4b18ed5
Compare
|
I realised that my implementation takes either As far as I understand, How do we want to deal with that? What do we want to support? |
|
@PascalPrecht I don't think |
|
Hi @PascalPrecht, Please fix Travis errors and then I can merge this PR. Thanks! |
4b18ed5 to
b7c59b2
Compare
|
@PascalPrecht: Please do address @mhevery's comments - it just looks like the "pr_action: merge" label was applied prematurely. That's a signal in our process that a PR is ready to be merged. No worries! |
b7c59b2 to
ce82f57
Compare
|
@alxhub this is implemented now. Waiting for travis to be happy. |
|
Looks like all you need is "gulp check-format". |
Since angular 1.4 we can also pass controller bindings directly to bindToController, making this syntax more convenient Closes angular#4784
ce82f57 to
410b1df
Compare
|
Argh. Forgot it to run when I updated the commit. This should be fine now. |
|
Yay, travis is happy. Let's merge it away. |
|
+1 - since |
|
Oh i thought this has been merged already. |
|
+1 The 1.5 component-API is also not working with upgradeNg1Component currently: in combination with currently leads to: Also the docs on https://angular.io/docs/ts/latest/guide/upgrade.html are saying above is working |
|
Until this gets merged, is there a good way to get |
|
@mattdsteele This should work fine as it's also covered in unit tests. Can you create a plunk demonstrate what doesn't work? |
Since angular 1.4 we can also pass controller bindings directly to bindToController, making this syntax more convenient Closes #4784
|
@PascalPrecht Seems like it's working once I upgraded to beta.3 - so no worries. Thanks for merging! |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Since angular
1.4we can also pass controller bindings directly tobindToController, making this syntax more convenientThis needs to be implemented I just added a test for it now.
/cc @mhevery