-
Notifications
You must be signed in to change notification settings - Fork 463
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 getting started page with standalone example (#4963)
Co-authored-by: Evgeniy Shevtsov <[email protected]>
- Loading branch information
1 parent
e86244c
commit 9a0578f
Showing
5 changed files
with
73 additions
and
3 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
projects/demo/src/modules/app/home/examples/app-standalone.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
```ts | ||
import {Component} from '@angular/core'; | ||
import {TuiRootModule} from '@taiga-ui/core'; | ||
|
||
@Component({ | ||
selector: 'app-root', | ||
templateUrl: './app.component.html', | ||
styleUrls: ['./my.component.scss', './my.component.less'], | ||
standalone: true, | ||
imports: [ | ||
TuiRootModule, | ||
// ... | ||
], | ||
}) | ||
export class AppComponent {} | ||
``` |
8 changes: 8 additions & 0 deletions
8
projects/demo/src/modules/app/home/examples/main-standalone-optional.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
```ts | ||
import {provideAnimations} from '@angular/platform-browser/animations'; | ||
import {TuiAlertModule, TuiDialogModule, TuiRootModule} from '@taiga-ui/core'; | ||
|
||
bootstrapApplication(AppComponent, { | ||
providers: [importProvidersFrom(TuiRootModule, TuiDialogModule, TuiAlertModule), provideAnimations()], | ||
}).catch(err => console.error(err)); | ||
``` |
8 changes: 8 additions & 0 deletions
8
projects/demo/src/modules/app/home/examples/main-standalone.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
```ts | ||
import {provideAnimations} from '@angular/platform-browser/animations'; | ||
import {TuiRootModule} from '@taiga-ui/core'; | ||
|
||
bootstrapApplication(AppComponent, { | ||
providers: [importProvidersFrom(TuiRootModule), provideAnimations()], | ||
}).catch(err => console.error(err)); | ||
``` |
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