Last change
on this file since 84d0fbb was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
3.0 KB
|
Line | |
---|
1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | import { Directive, InjectionToken, TemplateRef } from '@angular/core';
|
---|
9 | /**
|
---|
10 | * Injection token that can be used to reference instances of `MatTabContent`. It serves as
|
---|
11 | * alternative token to the actual `MatTabContent` class which could cause unnecessary
|
---|
12 | * retention of the class and its directive metadata.
|
---|
13 | */
|
---|
14 | export const MAT_TAB_CONTENT = new InjectionToken('MatTabContent');
|
---|
15 | /** Decorates the `ng-template` tags and reads out the template from it. */
|
---|
16 | export class MatTabContent {
|
---|
17 | constructor(
|
---|
18 | /** Content for the tab. */ template) {
|
---|
19 | this.template = template;
|
---|
20 | }
|
---|
21 | }
|
---|
22 | MatTabContent.decorators = [
|
---|
23 | { type: Directive, args: [{
|
---|
24 | selector: '[matTabContent]',
|
---|
25 | providers: [{ provide: MAT_TAB_CONTENT, useExisting: MatTabContent }],
|
---|
26 | },] }
|
---|
27 | ];
|
---|
28 | MatTabContent.ctorParameters = () => [
|
---|
29 | { type: TemplateRef }
|
---|
30 | ];
|
---|
31 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFiLWNvbnRlbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbWF0ZXJpYWwvdGFicy90YWItY29udGVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQUMsU0FBUyxFQUFFLGNBQWMsRUFBRSxXQUFXLEVBQUMsTUFBTSxlQUFlLENBQUM7QU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