×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Nilesh Yadav
Added: Jun 12, 2017 5:39 AM
Views: 3
Tags: no tags
  1. $scope.$eval("a",{a:3})
  2.  
  3.  
  4. var r = $scope.$eval(function (scope,locals){
  5.         return scope.a = scope.b * locals.c;
  6. },{c:2});