This file contains hidden or 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
| //... | |
| import { NgxsModule } from '@ngxs/store'; | |
| @NgModule({ | |
| imports: [ | |
| //... | |
| NgxsModule.forFeature([HomeState]), | |
| ], | |
| }) | |
| export class HomeModule {} |
This file contains hidden or 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
| //... | |
| import { NgxsModule } from '@ngxs/store'; | |
| @NgModule({ | |
| declarations: [AppComponent], | |
| imports: [ | |
| //... | |
| NgxsModule.forRoot([]), | |
| ], | |
| providers: [], |
This file contains hidden or 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
| import { State } from '@ngxs/store'; | |
| @State<HomeState>({ | |
| name: 'team', | |
| defaults: { | |
| isOpen: false | |
| } | |
| }) | |
| export class HomeState { | |
| public isOpen: boolean; | |
| } |
This file contains hidden or 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
| npm install @ngxs/store --save | |
| npm i @ngxs/logger-plugin @ngxs/devtools-plugin --only=dev |
This file contains hidden or 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
| { | |
| "scripts": { | |
| "buildProd": "ng build --base-href=/your-project-slug/" | |
| } |
This file contains hidden or 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
| { | |
| "projects": { | |
| "architect": { | |
| "build": { | |
| "options": { | |
| "outputPath": "public" |
This file contains hidden or 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
| image: node:8.12.0 | |
| pages: | |
| cache: | |
| paths: | |
| - node_modules/ | |
| script: | |
| - npm install -g @angular/[email protected] | |
| - npm install | |
| - npm run buildProd | |
| artifacts: |
This file contains hidden or 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
| beforeEach( | |
| async(() => { | |
| TestBed.configureTestingModule({ | |
| providers: [SomeProvider], | |
| declarations: [DropzoneComponent], | |
| schemas: [CUSTOM_ELEMENTS_SCHEMA] | |
| }).compileComponents(); | |
| }) | |
| ); |
This file contains hidden or 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
| <span [class.isActive]="isActive()">{{title}}</span> | |
| <folders [folders]="folders" | |
| [activeFolder]="activeFolder" | |
| (folderSelected)="folderSelected($event)"> | |
| </folders> | |
| <documents [documents]="documents" | |
| (documentOpened)="documentOpened($event)"> | |
| </documents> |
This file contains hidden or 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
| beforeEach( | |
| async(() => { | |
| TestBed.configureTestingModule({ | |
| providers: [SomeProvider], | |
| declarations: [DropzoneComponent, DocumentsComponent, FoldersComponent], | |
| schemas: [CUSTOM_ELEMENTS_SCHEMA] | |
| }).compileComponents(); | |
| }) | |
| ); |