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

Popular posts from this blog

node.js - StackOverflow API not returning JSON -

python - Subclassed QStyledItemDelegate ignores Stylesheet -

php - Laravel 4.1 to Heroku: SQLSTATE[HY000] [2002] No such file or directory -