title: Angular Tree component not working
body: <p>I installed and imported angular tree component and tried setting it up using the basic example provided following the steps in <a href="https://angular2-tree.readme.io/" rel="nofollow noreferrer">https://angular2-tree.readme.io/</a> </p>
  
  <p>But unfortunately I only see the root node and without expand. Posting the code can someone just see off the bat if anything is wrong? Please help me understand the error I oviously am not able to see.</p>
  
  <p>Module:</p>
  
  <pre><code>import { NgModule } from '@angular/core';
  import { TreeModule } from 'angular-tree-component';
  
  @NgModule({
    imports: [
      TreeModule
    ],
    declarations: [],
    providers: []
  })
  export class CourseCreationModule { }
  </code></pre>
  
  <p>Component:</p>
  
  <pre><code>import { Component, OnInit } from '@angular/core';
  import { Router, ActivatedRoute, Params } from '@angular/router';
  
  @Component({
    selector: 'app-container',
    templateUrl: './container.component.html',
    styleUrls: ['./container.component.css']
  })
  export class ContainerComponent implements OnInit {
    tree: any;
  
    constructor() { }
  
    getCourseDetails() {
        this.createLessonTree();
    }
  
    createLessonTree() {
      this.tree = [
        {
          id: 1,
          name: 'root1',
          children: [
            { 
              id: 2, 
              name: 'child1'
            },
            { id: 3, 
              name: 'child2'
            }
          ]
        },
        {
          id: 4,
          name: 'root2',
          children: [
            { id: 5, name: 'child2.1' },
            {
              id: 6,
              name: 'child2.2',
              children: [
                { id: 7, name: 'subsub' }
              ]
            }
          ]
        }
      ];
    }
  
  ngOnInit() {
  this.route.params.subscribe(params =&gt; {
    this.courseId = params['id'];
    this.getCourseDetails();
  });
  }
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;tree-root [nodes]="tree"&gt;&lt;/tree-root&gt;
  </code></pre>
  
  <p>Believe there are no sytax errors as I can see <code>root1</code> and <code>root2</code>.</p>
  
  <p>Thank you.</p>