angularjs - Catching access to $scope properties -
is possible catch following: if have template
<div ng-controller="somecontroller"> {{notthere}} </div> and notthere not defined in controllers $scope, can have callback fired handle this? like:
$scope.$catch(function(name) { // name === 'notthere' return 'someval'; } br, daniel
well, can do
<div ng-controller="somecontroller"> {{notthere || 'someval'}} </div> but i'm not sure if meets requirements
Comments
Post a Comment