@@ -179,20 +179,20 @@ var ngBindTemplateDirective = ['$interpolate', function($interpolate) {
179
179
var ngBindHtmlDirective = [ '$sce' , '$parse' , function ( $sce , $parse ) {
180
180
return {
181
181
restrict : 'A' ,
182
- compile : function ( tElement , tAttrs ) {
182
+ compile : function ngBindCompile ( tElement , tAttrs ) {
183
183
tElement . addClass ( 'ng-binding' ) ;
184
184
185
- return function ( scope , element , attr ) {
185
+ return function ngBindLink ( scope , element , attr ) {
186
186
element . data ( '$binding' , attr . ngBindHtml ) ;
187
- var parsed = $parse ( attr . ngBindHtml ) ;
188
- var changeDetector = $parse ( attr . ngBindHtml , function getStringValue ( value ) {
187
+ var ngBindHtmlGetter = $parse ( attr . ngBindHtml ) ;
188
+ var ngBindHtmlWatch = $parse ( attr . ngBindHtml , function getStringValue ( value ) {
189
189
return ( value || '' ) . toString ( ) ;
190
190
} ) ;
191
191
192
- scope . $watch ( changeDetector , function ngBindHtmlWatchAction ( ) {
192
+ scope . $watch ( ngBindHtmlWatch , function ngBindHtmlWatchAction ( ) {
193
193
// we re-evaluate the expr because we want a TrustedValueHolderType
194
194
// for $sce, not a string
195
- element . html ( $sce . getTrustedHtml ( parsed ( scope ) ) || '' ) ;
195
+ element . html ( $sce . getTrustedHtml ( ngBindHtmlGetter ( scope ) ) || '' ) ;
196
196
} ) ;
197
197
} ;
198
198
}
0 commit comments