首页 > TAG信息列表 > CommonModule

BrowserModule has already been loaded. If ... angular坑

笔记 如果报错如下: BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.Error: BrowserModule has already been loaded. If you need access to common directiv

添加material ui库

ng add @angular/material   自定义预构建主题 ? Choose a prebuilt theme name, or "custom" for a custom theme: Custom ? Set up global Angular Material typography styles? Yes ? Set up browser animations for Angular Material? Yes   创建mat.module ng g mod

Angular共享特性模块

创建共享模块能让你更好地组织和梳理代码。你可以把常用的指令、管道和组件放进一个模块中,然后在应用中其它需要这些的地方导入该模块。 想象某个应用有下列模块: import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { FormsModul