Closed Morpho closed 9 years ago
seems legit! can you add a brief comment to describe why we need those lines?
It's needed because angular-js doesn't do two-way databinding for input[type=hidden] fields: https://github.com/angular/angular.js/pull/2574
I was referring co comment in the code)
I forgot to thank you, sorry about that. Thanks!
@Morpho Could you elaborate where $parse
and $attrs
comes from? Should them be declared somewhere?
@Morpho @homm I believe that this should help
- controller: ['$scope', '$element', '$log', function($scope, $element, $log) {
+ controller: ['$scope', '$element', '$log', '$parse', '$attrs', function($scope, $element, $log, $parse, $attrs) {
fixed in #9
It just doesnt work without this..