Add setNonce to $mdThemeProvider to allow the user to define a nonce attribute

Allow the user to define a nonce attribute for generated theme style tags. See https://github.com/angular/material/issues/7780
This commit is contained in:
Christopher Cortes
2016-08-01 20:08:53 +02:00
committed by GitHub
parent 2a24bbb7ca
commit e4933ee6fd

View File

@@ -247,6 +247,7 @@ declare namespace angular.material {
extendPalette(name: string, palette: IPalette): IPalette;
setDefaultTheme(theme: string): void;
alwaysWatchTheme(alwaysWatch: boolean): void;
setNonce(nonce: string): void;
}
interface IDateLocaleProvider {