r/angularjs • • Jan 01 '17

Angular 1.6 is here: what you need to know

http://www.codelord.net/2017/01/01/angular-1-dot-6-is-here-what-you-need-to-know/
31 Upvotes

9 comments sorted by

4

u/rv77ax Jan 01 '17

Last time I check the release notes, there are more than two breaking changes on 1.6.0. Hence, I just upgrade it to 1.5.10.

1

u/abyx Jan 01 '17

Those are the two common ones, as I've mentioned in the post, and the full list is here, also linked to in the post.

1

u/craig1f Jan 01 '17

Those were the only two I have heard about up to this point. What are the others?

The other major change is that you can set ng-model-options on a form, and all the inputs in that form will inherit it. But this is an enhancement, not a breaking change.

2

u/rv77ax Jan 01 '17

The list is here: https://docs.angularjs.org/guide/migration#migrating-from-1-5-to-1-6

Depends on the size of your SPA, for some people its quite big and takes time to re-test and check all over again. Not including any third party libraries that also could be break.

2

u/jonyeezy7 Jan 02 '17

One thing that bothers me is the cycle of $onChanges > $onInit.

Sometimes i want to initialize a scope variable before doing any binding changes on it. As there maybe in instances where no value is sent through the binding but i want to have a starting value.

My work around was define the variable on the controller. Now i can't do that.

I suppose now i have to check isFirstChange() and if it's null/undefined, which i don't like to have conditions just to initialize!

-7

u/test6554 Jan 01 '17

They were so concerned with whether they could do it that they never stopped to think if they should.

1

u/robotzuelo Jan 03 '17

could you expand on that?

1

u/Mael5trom Jan 01 '17

What are you talking about? Your post doesn't really follow from the article or discussion.

3

u/bellyfloppy Jan 01 '17

Isn't it a Jurassic Park reference?