2017-05-19 14:40:20 +03:00
|
|
|
import { Component } from '@angular/core';
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: 'ngx-tree',
|
|
|
|
|
templateUrl: './tree.component.html',
|
2018-06-05 13:50:49 +03:00
|
|
|
styleUrls: ['./tree.component.scss'],
|
2017-05-19 14:40:20 +03:00
|
|
|
})
|
|
|
|
|
export class TreeComponent {
|
|
|
|
|
|
2018-06-05 13:50:49 +03:00
|
|
|
nodes = [{
|
|
|
|
|
name: 'Programming languages by programming paradigm',
|
2017-05-19 14:40:20 +03:00
|
|
|
children: [{
|
2018-06-05 13:50:49 +03:00
|
|
|
name: 'Object-oriented programming',
|
2017-05-19 14:40:20 +03:00
|
|
|
children: [{
|
2018-06-05 13:50:49 +03:00
|
|
|
name: 'Java',
|
2017-05-19 14:40:20 +03:00
|
|
|
}, {
|
2018-06-05 13:50:49 +03:00
|
|
|
name: 'C++',
|
2017-05-19 14:40:20 +03:00
|
|
|
}, {
|
2018-06-05 13:50:49 +03:00
|
|
|
name: 'C#',
|
2017-05-19 14:40:20 +03:00
|
|
|
}],
|
|
|
|
|
}, {
|
2018-06-05 13:50:49 +03:00
|
|
|
name: 'Prototype-based programming',
|
2017-05-19 14:40:20 +03:00
|
|
|
children: [{
|
2018-06-05 13:50:49 +03:00
|
|
|
name: 'JavaScript',
|
2017-05-19 14:40:20 +03:00
|
|
|
}, {
|
2018-06-05 13:50:49 +03:00
|
|
|
name: 'CoffeeScript',
|
2017-05-19 14:40:20 +03:00
|
|
|
}, {
|
2018-06-05 13:50:49 +03:00
|
|
|
name: 'Lua',
|
2017-05-19 14:40:20 +03:00
|
|
|
}],
|
|
|
|
|
}],
|
2018-06-05 13:50:49 +03:00
|
|
|
}];
|
2017-05-19 14:40:20 +03:00
|
|
|
|
|
|
|
|
}
|