File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/@angular/compiler/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import {
2424 StringMapWrapper ,
2525} from '@angular/facade' ;
2626import { CssSelector } from './selector' ;
27- import { splitAtColon } from './util' ;
27+ import { splitAtColon , sanitizeIdentifier } from './util' ;
2828import { getUrlScheme } from './url_resolver' ;
2929
3030// group 1: "property" from "[property]"
@@ -316,7 +316,7 @@ export class CompileTokenMetadata implements CompileMetadataWithIdentifier {
316316 ( isPresent ( ak ) && ak == token2 . assetCacheKey ) ;
317317 }
318318
319- get name ( ) : string { return isPresent ( this . value ) ? this . value : this . identifier . name ; }
319+ get name ( ) : string { return isPresent ( this . value ) ? sanitizeIdentifier ( this . value ) : this . identifier . name ; }
320320}
321321
322322export class CompileTokenMap < VALUE > {
You can’t perform that action at this time.
0 commit comments