Skip to content

Commit e56d82b

Browse files
author
Karthik Kumar A
committed
add specific instructions for angular cli
1 parent b396b7b commit e56d82b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@ class MyComponent {
104104
```
105105

106106
3. Apart from that, in order to have usable tree in the browser, you need to add **ng2-tree styles** which you can find in your `node_modules/ng2-tree/styles.css`
107+
In .angular-cli.json, it would be:
108+
109+
```typescript
110+
"styles": [
111+
"styles.css",
112+
"../node_modules/ng2-tree/styles.css",
113+
],
114+
```
107115
4. And finally, I suppose, you'd want to listen to events generated by ng2-tree (for a full list of supported events look at the [API](#wrench-api)). No problem, this is also easy to do - for example let's add a listener for `node was selected` kind of events:
108116

109117
```typescript

0 commit comments

Comments
 (0)