" ", , UPDATE, , "" ( "=" ) . , , , - "non-assign".
, , ? , "scope: true", . , , .
, n- n HTML HTML . , :
ng-controller="AppCtrl as appCtl"
datepickerOptions AppCtrl. "", , , :
this.datepickerOptions = { }
( scope: true) $. :
$scope.datepickerOptions = $scope.appCtl.datepickerOptions
, "" , scope datepickerOptions , . (appCtl), (datepickerOptions) , .
- ngModel. , , , ng-model ( ) "appCtl.modelName", modelName - , . , . - , , AppCtrl:
var _this = this;
_this.modelName = null;
$scope.$watch(function() { return _this.modelName; }, function(val, oldVal)
{
});
, (datepickermirror), .
, !