Say I have the below html:
<div>{{name}}</div>
I want to delay the interpolation on {{name}}
, so that I can see the curly bracket on html(raw data).
My first thought is to create an attribute directive called pause, and in the compile function of this directive, just call $timeout
to pause for a while.
The html
should look like this, the 10000
is the pause interval.
<div pause="10000">{{name}}</div>
However it didn't pause, is there another way to achieve this?