generated from Tinkoff/angular-open-source-starter
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(demo): update Angular documentation page
- Loading branch information
1 parent
08a7936
commit 8081d43
Showing
13 changed files
with
59 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './lib/deprecated'; | ||
export * from './lib/maskito.cva'; | ||
export * from './lib/maskito.directive'; | ||
export * from './lib/maskito.pipe'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import {NgModule} from '@angular/core'; | ||
|
||
import {MaskitoCVA} from './maskito.cva'; | ||
import {Maskito} from './maskito.directive'; | ||
import {MaskitoPipe} from './maskito.pipe'; | ||
|
||
/** | ||
* @deprecated | ||
*/ | ||
@NgModule({ | ||
imports: [Maskito, MaskitoCVA, MaskitoPipe], | ||
exports: [Maskito, MaskitoCVA, MaskitoPipe], | ||
}) | ||
export class MaskitoModule {} | ||
|
||
/** | ||
* @deprecated Use `Maskito` instead. | ||
*/ | ||
export {Maskito as MaskitoDirective} from './maskito.directive'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
projects/demo/src/pages/frameworks/angular/examples/1-nested/component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
projects/demo/src/pages/frameworks/angular/examples/2-nested/component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
projects/demo/src/pages/frameworks/angular/examples/3-cva/component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
projects/demo/src/pages/frameworks/angular/examples/4-pipe/component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
projects/demo/src/pages/frameworks/angular/examples/basic-directive-approach.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
projects/demo/src/pages/frameworks/angular/examples/import-maskito.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
```ts | ||
import {NgModule} from '@angular/core'; | ||
import {Component} from '@angular/core'; | ||
import {Maskito} from '@maskito/angular'; | ||
|
||
@NgModule({ | ||
@Component({ | ||
// ... | ||
imports: [ | ||
// ... | ||
Maskito, | ||
// ... | ||
], | ||
}) | ||
export class YourModule {} | ||
export class YourComponent {} | ||
``` |