-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[article] adds ng-cli-to-npm #60
base: master
Are you sure you want to change the base?
Conversation
```ts | ||
// `another-project\src\app\app.module.ts | ||
import { TlUiModule } from 'tl-ui/src/app/tl-ui/tl-ui.module'; | ||
@ngModule({imports: [TlUiModule]}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NgModule 应该要大写的。。O.O
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
- 本文所述方法是笔者通过试错摸索出来的,过程中大量参考了 [@ng-bootstrap/ng-bootstrap][]。 | ||
- 试错固然啰嗦,需要干货的同学请移步“总结”部分。 | ||
- 本文在测试安装本地 package 的过程中,没有使用 `npm link` -- 笔者试验多次均以 Error 告终。 | ||
- 阅读本文,需要读者简单了解一下知识点: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
“以”下知识点:
- `ng g module awesome-module` | ||
- 为了标签前缀,稍微修改 `angular-cli.json` 和 `tslint.json` | ||
- 完成 awesome-module 的开发(template 和 styles 直接写在 component 里) | ||
- 根目录新建 `index.ts`,并 re-export `awesoe-module` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome
No description provided.