Tushar Dikshit
What kind of classes can you import (meta) in an angular module?
By Tushar Dikshit in Angular on Mar 21 2018
  • Tushar Dikshit
    Mar, 2018 21

    Declarations, providers. declarations / components are in local scope (private visibility) providers / services are in global scope (public visibility). SharedModules – You can import multiple common components in shared module and import shaedmodules. You also need to export those to use in other modules./////////////////////////////////////////////////////////////////////////////////////////////////////import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FlexLayoutModule } from '@angular/flex-layout'; import { MaterialModule } from '@angular/material'; @NgModule({ exports: [CommonModule, FlexLayoutModule, MaterialModule] }) export class SharedModule {}

    • 1


Most Popular Job Functions


MOST LIKED QUESTIONS