mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-02-07 17:04:23 +01:00
fix(tree): fix tree component, replace ng2-tree on the angular-tree-component
Closes #1690
This commit is contained in:
parent
386a53072e
commit
22c161ff0c
7 changed files with 2806 additions and 3670 deletions
|
|
@ -1,33 +1,33 @@
|
|||
import { Component } from '@angular/core';
|
||||
import { TreeModel } from 'ng2-tree';
|
||||
|
||||
@Component({
|
||||
selector: 'ngx-tree',
|
||||
templateUrl: './tree.component.html',
|
||||
styleUrls: ['./tree.component.scss'],
|
||||
})
|
||||
export class TreeComponent {
|
||||
|
||||
tree: TreeModel = {
|
||||
value: 'Programming languages by programming paradigm',
|
||||
nodes = [{
|
||||
name: 'Programming languages by programming paradigm',
|
||||
children: [{
|
||||
value: 'Object-oriented programming',
|
||||
name: 'Object-oriented programming',
|
||||
children: [{
|
||||
value: 'Java',
|
||||
name: 'Java',
|
||||
}, {
|
||||
value: 'C++',
|
||||
name: 'C++',
|
||||
}, {
|
||||
value: 'C#',
|
||||
name: 'C#',
|
||||
}],
|
||||
}, {
|
||||
value: 'Prototype-based programming',
|
||||
name: 'Prototype-based programming',
|
||||
children: [{
|
||||
value: 'JavaScript',
|
||||
name: 'JavaScript',
|
||||
}, {
|
||||
value: 'CoffeeScript',
|
||||
name: 'CoffeeScript',
|
||||
}, {
|
||||
value: 'Lua',
|
||||
name: 'Lua',
|
||||
}],
|
||||
}],
|
||||
};
|
||||
}];
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue