Skip to content

Commit fbd16c2

Browse files
author
Georgii Rychko
authored
Merge pull request #136 from valor-software/master
sync dev with master
2 parents 581bd1d + dacae88 commit fbd16c2

File tree

7 files changed

+256
-136
lines changed

7 files changed

+256
-136
lines changed

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
<a name="2.0.0-alpha.10"></a>
2+
# [2.0.0-alpha.10](https://github.com/valor-software/ng2-tree/compare/v2.0.0-alpha.9...v2.0.0-alpha.10) (2017-08-27)
3+
4+
5+
### Bug Fixes
6+
7+
* remove lodash 'get' ([5bf144d](https://github.com/valor-software/ng2-tree/commit/5bf144d))
8+
9+
10+
11+
<a name="2.0.0-alpha.9"></a>
12+
# [2.0.0-alpha.9](https://github.com/valor-software/ng2-tree/compare/v2.0.0-alpha.8...v2.0.0-alpha.9) (2017-08-27)
13+
14+
15+
### Bug Fixes
16+
17+
* handle rxjs subscriptions ([5db73e0](https://github.com/valor-software/ng2-tree/commit/5db73e0))
18+
* **tree, menu:** return proper value for positionInParent call; change z-index of the menu ([0db681c](https://github.com/valor-software/ng2-tree/commit/0db681c))
19+
20+
21+
122
<a name="2.0.0-alpha.8"></a>
223
# [2.0.0-alpha.8](https://github.com/valor-software/ng2-tree/compare/v2.0.0-alpha.6...v2.0.0-alpha.8) (2017-07-02)
324

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,16 @@ 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+
108+
In Angular 2/4 cli projects, modify **.angular-cli.json** as below:
109+
110+
```typescript
111+
112+
"styles": [
113+
"styles.css",
114+
"../node_modules/ng2-tree/styles.css"
115+
],
116+
```
107117
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:
108118

109119
```typescript
@@ -292,7 +302,7 @@ Here is an example of its usage:
292302
'cssClasses': {
293303
'expanded': 'fa fa-caret-down fa-lg',
294304
'collapsed': 'fa fa-caret-right fa-lg',
295-
'leaf:': 'fa fa-lg',
305+
'leaf': 'fa fa-lg',
296306
'empty': 'fa fa-caret-right disabled'
297307
},
298308
'templates': {

0 commit comments

Comments
 (0)