fix(platform-browser): mark Meta and Title services as tree shakable providers (#24815)
This lets services that use Meta and Title services to be tree shakable and provided in root. PR Close #24815
This commit is contained in:

committed by
Miško Hevery

parent
1089261717
commit
197387d05e
@ -34,7 +34,7 @@ export type MetaDefinition = {
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
@Injectable()
|
||||
@Injectable({providedIn: 'root'})
|
||||
export class Meta {
|
||||
private _dom: DomAdapter;
|
||||
constructor(@Inject(DOCUMENT) private _doc: any) { this._dom = getDOM(); }
|
||||
|
@ -22,7 +22,7 @@ import {DOCUMENT} from '../dom/dom_tokens';
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
@Injectable()
|
||||
@Injectable({providedIn: 'root'})
|
||||
export class Title {
|
||||
constructor(@Inject(DOCUMENT) private _doc: any) {}
|
||||
/**
|
||||
|
Reference in New Issue
Block a user