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
| export const routes:RouterConfig = [ | |
| ...LoginRoutes, | |
| ...RegisterRoutes, | |
| ...PagesRoutes, | |
| { | |
| path: '**', | |
| redirectTo: '/pages/dashboard' | |
| }, | |
| ]; |
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
| <nb-user showInitials | |
| size="medium" | |
| name="Dmitry Nehaychik" | |
| title="Nebular Dev" | |
| badgeText="17" | |
| badgeStatus="danger" | |
| badgePosition="bottom right"> | |
| </nb-user> |
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
| <nb-reveal-card> | |
| <nb-card-front> | |
| <nb-card><nb-card-body>Front Card</nb-card-body></nb-card> | |
| </nb-card-front> | |
| <nb-card-back> | |
| <nb-card><nb-card-body>Back Card</nb-card-body></nb-card> | |
| </nb-card-back> | |
| </nb-reveal-card> |
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
| data.array.push(newValue); |
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
| data.array[i].prop1 = 'new value'; |
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
| @Injectable() | |
| export class Store { | |
| @observable state: any; | |
| @computed get aggregation() {...} | |
| @action changeFunc(data) {...} | |
| } |
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
| @Component({ | |
| selector: 'app-component', | |
| templateUrl: './component.html', | |
| changeDetection: ChangeDetectionStrategy.OnPush, | |
| }) | |
| export class Component { | |
| constructor(public store: Store) {} | |
| changeFunc() {...} | |
| } |
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
| <div *mobxAutorun="{ dontDetach: true }"> | |
| ... | |
| </div> |
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
| @observable | |
| state: any = { | |
| spendings: [], | |
| spendingTypes: [] | |
| }; |
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
| <div *mobxAutorun="{ dontDetach: true }"> | |
| ... | |
| </div> |