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
| note: if you use versions below nestjs/cli@5.8.0 => then you will get nodemon setup by default | |
| nodemon.json | |
| ---------- | |
| { | |
| "watch": ["src"], | |
| "ext": "ts", | |
| "ignore": ["src/**/*.spec.ts"], |
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
| .main { | |
| display: -ms-grid; | |
| display: grid; | |
| -ms-grid-columns: 100%; | |
| grid-template-columns: 100%; | |
| -ms-grid-rows: 170px 600px auto; | |
| grid-template-rows: 170px 600px auto; | |
| grid-template-areas: "header header header header" | |
| "content content content content" | |
| "rest rest rest rest"; |
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 { Component } from '@angular/core'; | |
| @Component({ | |
| selector: 'Tv2', | |
| styleUrls: ['tv.css'], | |
| host : { | |
| '(window : keydown)': 'hotkeys($event)' | |
| }, | |
| template: ` |
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
| modal pop-up using angular-4 and material design | |
| ----------------------------------------------------------- | |
| https://plnkr.co/edit/KAGWxrHsub9wezcFaBZz?p=preview |
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
| <button type="button" class="btn btn-primary" (click)="staticModal.show()">Static modal</button> | |
| <div class="modal fade" bsModal #staticModal="bs-modal" [config]="{backdrop: 'static'}" | |
| tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true"> | |
| <div class="modal-dialog modal-sm"> | |
| <div class="modal-content"> | |
| <div class="modal-header"> | |
| <h4 class="modal-title pull-left">Static modal</h4> | |
| <button type="button" class="close pull-right" aria-label="Close" (click)="staticModal.hide()"> | |
| <span aria-hidden="true">×</span> |
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 { Component } from '@angular/core'; | |
| @Component({ | |
| selector: 'my-app', | |
| styles: [` | |
| `], | |
| template: ` | |
| <div><nav class="navbar navbar-default"> | |
| <div class="container-fluid"> |
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 { Component } from '@angular/core'; | |
| @Component({ | |
| selector: 'page-not-found', | |
| styles: [` | |
| `], | |
| template: ` | |
| <div class="jumbotron"> | |
| <h1 style="color: red;">404</h1> |
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 { NgModule } from '@angular/core'; | |
| import { BrowserModule } from '@angular/platform-browser'; | |
| import { AppComponent } from './app.component'; | |
| import { AppComponent1 } from './app.component1'; | |
| import { AppComponent2 } from './app.component2'; | |
| import { AppComponent5 } from './app.component5'; | |
| import { PageNotFound } from './app.pagenotfound'; | |
| import { RouterModule } from '@angular/router'; |
NewerOlder