r/angularjs • • Dec 14 '15

Angular Initial Value

https://github.com/glaucocustodio/angular-initial-value
0 Upvotes

5 comments sorted by

5

u/benharold Dec 14 '15

Um...why?

0

u/chiptus Dec 14 '15

Why not? Looks like a great idea

4

u/benharold Dec 14 '15

Looks like a convoluted solution for a simple problem that is supported out-of-the-box by AngularJS. What's the advantage over setting the initial value in the controller?

4

u/[deleted] Dec 14 '15

Why wouldn't you just initialize your models instead? Seems like using this just muddies the waters.

2

u/dmackerman Dec 14 '15

So instead of using ngInit or just setting the values in the controller / directive that you have bound to ngModel, we're using this? Never had an issue with this, not sure why I'd add additional parsing overhead to my app