File tree Expand file tree Collapse file tree 6 files changed +68
-6
lines changed
Expand file tree Collapse file tree 6 files changed +68
-6
lines changed Original file line number Diff line number Diff line change 1+ < div class ="jumbotron jumbotron-fluid ">
2+ < div class ="container ">
3+ < div class ="row ">
4+ < div class ="col-sm-4 d-flex justify-content-center justify-content-md-end ">
5+ < img src ="assets/logo.svg " alt ="core logo " class ="logo ">
6+ </ div >
7+ < div class ="col-sm-8 text-center text-md-left ">
8+ < h1 > MatDialogsModule</ h1 >
9+ < p > Beautiful prebuilt material dialogs</ p >
10+ < p > Scroll down to see it in action!</ p >
11+ < p class ="buttons ">
12+ < a class ="btn btn-outline-primary btn-lg " href ="https://github.com/angular-material-extensions/core "
13+ target ="_blank "> < i class ="fa fa-github fa-lg "> </ i > Code on Github</ a >
14+ < a class ="btn btn-outline-primary btn-lg " href ="doc/index.html " target ="_blank "> < i
15+ class ="fa fa-book fa-lg "> </ i > Documentation</ a >
16+ < a class ="btn btn-outline-primary btn-lg " href ="# " (click) ="editOnStackBlitz() "> < i
17+ class ="fa fa-bolt fa-lg "> </ i > Edit on StackBlitz</ a >
18+ </ p >
19+ </ div >
20+ </ div >
21+ </ div >
22+ </ div >
23+
124< div [fxHide] ="shouldHide " class ="container ">
225
26+ < markdown src ="assets/md/dialogs/INSTALLATION.md "> </ markdown >
27+
328 < mat-card class ="example-card ">
429 < mat-card-title > Material Alert Dialog (Default)</ mat-card-title >
530 < mat-card-content fxLayout ="column " fxLayoutAlign ="center center ">
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import {
1414 MatSelectDialogData
1515} from '@angular-material-extensions/core' ;
1616import { MatDialog } from '@angular/material' ;
17+ import sdk from '@stackblitz/sdk' ;
1718
1819@Component ( {
1920 selector : 'app-dialogs' ,
@@ -56,6 +57,10 @@ export class DialogsComponent implements OnInit {
5657 ngOnInit ( ) {
5758 }
5859
60+ editOnStackBlitz ( ) {
61+ sdk . openGithubProject ( 'angular-material-extensions/core/tree/master/demo' ) ;
62+ }
63+
5964 openAlertDialog ( matAlertDialogData : MatAlertDialogData ) {
6065 this . shouldHide = true ;
6166 this . dialog
Original file line number Diff line number Diff line change 55 < img src ="assets/logo.svg " alt ="core logo " class ="logo ">
66 </ div >
77 < div class ="col-sm-8 text-center text-md-left ">
8- < h1 > core</ h1 >
8+ < h1 > @angular-material-extensions/ core</ h1 >
99 < p > Set of components, directives and services to boost the app development with angular material 2</ p >
1010 < p > Scroll down to see it in action!</ p >
1111 < p class ="buttons ">
@@ -18,7 +18,6 @@ <h1>core</h1>
1818 </ p >
1919 </ div >
2020 </ div >
21-
2221 </ div >
2322</ div >
2423
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export class HomeComponent implements OnInit {
1919 }
2020
2121 ngOnInit ( ) {
22- this . titleService . setTitle ( 'Home | core' ) ;
22+ this . titleService . setTitle ( '@angular-material-extensions/ core' ) ;
2323 }
2424
2525 editOnStackBlitz ( ) {
Original file line number Diff line number Diff line change @@ -2,20 +2,20 @@ import {NgModule} from '@angular/core';
22import { CommonModule } from '@angular/common' ;
33import { HomeRoutingModule } from './home-routing.module' ;
44import { HomeComponent } from './home.component' ;
5- import { MatDialogsModule } from '@angular-material-extensions/core' ;
5+ import { MatCoreModule , MatDialogsModule } from '@angular-material-extensions/core' ;
66import { MatButtonModule , MatCardModule , MatDialogModule } from '@angular/material' ;
7- import { MatLanguageMenuComponent } from '../../../../src/module/components/mat-language-menu/mat-language-menu.component' ;
87
98@NgModule ( {
109 imports : [
1110 CommonModule ,
1211 HomeRoutingModule ,
12+ MatCoreModule ,
1313 MatDialogsModule ,
1414 MatDialogModule ,
1515 MatButtonModule ,
1616 MatCardModule
1717 ] ,
18- declarations : [ HomeComponent , MatLanguageMenuComponent ] ,
18+ declarations : [ HomeComponent ] ,
1919} )
2020export class HomeModule {
2121}
Original file line number Diff line number Diff line change 1+ # Installation
2+
3+ install ` @angular-material-extensions/core ` via:
4+ ``` shell
5+ npm install --save @angular-material-extensions/core
6+ ```
7+
8+ ## Import the library
9+
10+ Once installed you need to import the main module:
11+ ``` js
12+ import { MatDialogsModule } from ' @angular-material-extensions/core' ;
13+ ```
14+ The only remaining part is to list the imported module in your application module. The exact method will be slightly
15+ different for the root (top-level) module for which you should end up with the code similar to (notice ` MatPasswordStrengthModule .forRoot() ` ):
16+ ``` js
17+ import { MatDialogsModule } from ' @angular-material-extensions/core' ;
18+ import { MatDialogModule } from ' @angular/material' ;
19+
20+ @NgModule ({
21+ declarations: [AppComponent, ... ],
22+ imports: [
23+ MatDialogsModule,
24+ MatDialogModule,
25+ ... ],
26+ bootstrap: [AppComponent]
27+ })
28+ export class AppModule {
29+
30+ constructor (public dialog : MatDialog ) {
31+ }
32+ }
33+ ```
You can’t perform that action at this time.
0 commit comments