Skip to content

Commit

Permalink
fix(package): Add tslib to peer dependencies
Browse files Browse the repository at this point in the history
And document that requirement in the Readme.md
  • Loading branch information
gund committed Apr 13, 2017
1 parent 83f112d commit b27eecd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ For Angular 2 please use `ng-dynamic-component@^0.0.1`
$ npm install ng-dynamic-component --save
```

Also please make sure you have latest version of `tslib` library and you have in your tsconfig:
```json
importHelpers: true
```

## Usage

Import `DynamicModue` with dynamic components you want to insert later:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"peerDependencies": {
"@angular/core": "4.0.0",
"@angular/common": "4.0.0",
"rxjs": "^5.2.0"
"rxjs": "^5.2.0",
"tslib": "^1.6.0"
},
"devDependencies": {
"@angular/common": "4.0.0",
Expand Down

0 comments on commit b27eecd

Please sign in to comment.