Posts

Showing posts with the label Cheat Sheet

Angular Cheat Sheet

Image
Cheat Sheet Bootstrapping import {  platformBrowserDynamic  } from '@angular/platform-browser-dynamic'; platformBrowserDynamic ().bootstrapModule (AppModule); Bootstraps the app, using the root component from the specified  NgModule . NgModules import {  NgModule  } from '@angular/core'; @ NgModule ({ declarations: ..., imports: ..., exports: ..., providers: ..., bootstrap: ...}) class MyModule {} Defines a module that contains components, directives, pipes, and providers. declarations:  [MyRedComponent, MyBlueComponent, MyDatePipe] List of components, directives, and pipes that belong to this module. imports:  [ BrowserModule , SomeOtherModule] List of modules to import into this module. Everything from the imported modules is available to  declarations  of this module. exports:  [MyRedComponent, MyDatePipe] List of components, directives, and pipes visible to modules that import this module. provide...

Popular posts from this blog

How to Secure Session Management in Node

Angular 9 - User Registration and Login Example & Tutorial

How to download a file using command prompt (cmd) Windows?