I want to use the data-bound value immediately:
Get data from Json file and bind it to scope
$scope.abc="hahahah";
<
p class="***" data-value="{{abc}}" skilldetail='' index='0'>
But when getting the data-value from the link function of the directive, I did not get "hahahah", but got {{abc}}
The value of element.find('.***').attr('data-value'); is {{abc}}, not hahahah.
How to do this? When does the value of ng-bing take effect?
$scope.apply() tells angular that it’s time to update the data