A highly customizable Angular Tree Component, usable with minimal implementation.
npm install tree-ngx

sh
$> npm install tree-ngx --save
`
$3
`sh
@import 'tree-ngx';
`
$3
`sh
import { TreeNgxModule } from 'tree-ngx';
@NgModule({
imports: [TreeNgxModule]
}
`
Example
How it looks with some minor style customization.
See the working example at http://emilsunesson.com/docs/tree-ngx/tree-ngx-example.
$3
Basic template implementation.
`sh
`
$3
`sh
this.nodeItems = [{
id: '0',
name: 'Heros',
children: [
{
id: '1',
name: 'Batman',
item: {
phrase: 'I am the batman'
}
},
{
id: '2',
name: 'Superman',
item: {
phrase: 'Man of steel'
}
}
]
},
{
id: '3',
name: 'Villains',
children: [
{
id: '4',
name: 'Joker',
item: {
phrase: 'Why so serius'
}
},
{
id: '5',
name: 'Lex luthor',
item: {
phrase: 'I am the villain of this story'
}
}
]
}];
``