brantwills/Angular-Paging

Watched disabled attribute not being evaluated correctly

sprycoder opened this issue · 0 comments

The disabled attribute is included in the watch collection of the directive, but is being evaluated from the parent scope in evalBoolAttribute(). This is creating issues in a controller as implementation.
I suspect the attribute should be evaluated the same as the page, pageSize and total attributes. i.e.
disabled: '=' (instead of disabled: '@')
and then change setScopeValues() to be
scope.isDisabled = scope.disabled; (instead of scope.isDisabled = evalBoolAttribute(scope, attrs.disabled);)