Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
2.5 KB
|
Rev | Line | |
---|
[6a3a178] | 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 } from '@angular/core';
|
---|
| 9 | /**
|
---|
| 10 | * Injection token that can be used to reference instances of `MatPrefix`. It serves as
|
---|
| 11 | * alternative token to the actual `MatPrefix` class which could cause unnecessary
|
---|
| 12 | * retention of the class and its directive metadata.
|
---|
| 13 | */
|
---|
| 14 | export const MAT_PREFIX = new InjectionToken('MatPrefix');
|
---|
| 15 | /** Prefix to be placed in front of the form field. */
|
---|
| 16 | export class MatPrefix {
|
---|
| 17 | }
|
---|
| 18 | MatPrefix.decorators = [
|
---|
| 19 | { type: Directive, args: [{
|
---|
| 20 | selector: '[matPrefix]',
|
---|
| 21 | providers: [{ provide: MAT_PREFIX, useExisting: MatPrefix }],
|
---|
| 22 | },] }
|
---|
| 23 | ];
|
---|
| 24 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJlZml4LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL21hdGVyaWFsL2Zvcm0tZmllbGQvcHJlZml4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUVILE9BQU8sRUFBQyxTQUFTLEVBQUUsY0FBYyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXhEOzs7O0dBSUc7QUFDSCxNQUFNLENBQUMsTUFBTSxVQUFVLEdBQUcsSUFBSSxjQUFjLENBQVksV0FBVyxDQUFDLENBQUM7QUFFckUsc0R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