Skip to content

Commit d84e5bb

Browse files
authored
Merge pull request #169 from stephennancekivell/fix-ng-if-pr
Swap order of watchers to fix re initialisation issue.
2 parents 74e4174 + c109338 commit d84e5bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ export default class AngularColorPickerController {
201201

202202
// ngModel
203203

204-
this.$scope.$watch('AngularColorPickerController.ngModel', this.watchNgModel.bind(this));
205204
this.$scope.$watch('AngularColorPickerController.internalNgModel', this.watchNgModel.bind(this));
205+
this.$scope.$watch('AngularColorPickerController.ngModel', this.watchNgModel.bind(this));
206206

207207
// options
208208

0 commit comments

Comments
 (0)