Interviews2 answers
what is string interpolation in Angular.js ?
2 Answers
$interpolate : This service is used to evaluate angular expressions. You can run an entire string against a scope, and interpolate will give the result. e.g would be
var string = 'My Name is {{name}}';
$scope.name = 'Manish';
$interpolate(string)($scope); //this will result in My Name is Manish
sushil kumarPosted Aug 30, 2017, 8:35 AM EDT
Compiler during the compilation process matches text and attributes using interpolate service to see if they contains embedded expressions. As part of normal digest cycle these expressions are updated and registered as watches.
Bhuvanesh MohankumarPosted May 5, 2016, 10:23 AM EDT

