You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when a widget is exposed to the parent scope, it is not possible to initialise it from the controller.
<divng-controller="MainCtrl"><ng-star-ratingdata-id="rate"></div><!-- widget is exposed to $scope --></div>
functionMainCtrl($scope){$scope.rate.value=3;// this will fail because $scope.rate is undefined$scope.setRate=function(v){$scope.rate.value=v;// this will work as it's executed after the directive is initialized}}
The text was updated successfully, but these errors were encountered:
Currently, when a widget is exposed to the parent scope, it is not possible to initialise it from the controller.
The text was updated successfully, but these errors were encountered: