Interviews1 answer
What kind of classes can you import (meta) in an angular module?
1 Answer
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 {}
Tushar DikshitPosted Mar 21, 2018, 9:20 AM EDT

