title: Can't bind to 'ngIf' since it isn't a known property of 'md-card-title'
body: <p>I am learning <code>Angular2 RC5</code> with Angular2 material libraries and getting it to run in a <code>AspNetCore 1.0</code> app using <code>VisualStudio 2015.</code> I took a perfectly running <code>Angular2 RC5</code> single page application and tried to introduce lazy loading where only the login page will load first. When I have successfully logged in, I want to load the remaining pages. </p>
  
  <p>When I clicked on the login button in SPA mode, I would redirect successfully to the DashboardComponent page which was preloaded with the login page - that was before I introduced lazy loading. 
  After following <a href="https://angular.io/docs/ts/latest/guide/ngmodule.html#!#lazy-load" rel="nofollow">this tutorial</a> I now get these errors</p>
  
  <p><strong><em>Error Snippet</em></strong></p>
  
  <blockquote>
  <pre><code>EXCEPTION: Error: Uncaught (in promise): Template parse errors: Can't bind      to 'ngIf' since it isn't a known property of 'md-card-title'.
  1. If 'md-card-title' is an Angular component and it has 'ngIf' input, then verify that it is part of this module.
  2. If 'md-card-title' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message.  ("
  
  
          &lt;md-card-title [ERROR -&gt;]*ngIf="!showMessage &amp;&amp; !isApproved"&gt;
              Please use the information below...
          &lt;/md-card-title&gt; "): ReportListComponent@63:23 Property binding ngIf not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "directives" section. ("
  </code></pre>
  </blockquote>
  
  <p>Why is the ngIf directive suddenly not working? It was working before I moved the Dashboard to load lazily post the login success.</p>
  
  <p>I have gone all the way till using the Shared modules approach in the link I posted above. Is not using the Shared modules a cause for this issue? I presumed module sharing to be a way to clean up the code and not repeat stuff once everything works and nothing more than that. </p>
  
  <p>My Dashboard is similar to the HeroesList page in the link I am following above,  where in it loads some more pages the minute the DashboardModule is loaded. I have put breakpoints in the Dashboard page on the MVC side and have confirmed that the Dashboard and pages after does load lazily only on a successful login.</p>
  
  <p>The error seems like its not able to get the reference of core angular references and/or angular2 material libraries. I have put all of those imports listed here in all the modules that would have them other than the routing modules</p>
  
  <pre><code>import { NgModule }         from '@angular/core';
  import { FormsModule } from '@angular/forms';
  
  import { BrowserModule } from '@angular/platform-browser';
  import { HttpModule }    from '@angular/http';
  import { RouterModule } from '@angular/router';
  
  import { MdRadioModule } from '@angular2-material/radio';
  import { MdToolbarModule } from '@angular2-material/toolbar';
  import { MdButtonModule } from '@angular2-material/button';
  import { MdIconModule } from '@angular2-material/icon';
  import { MdProgressBarModule } from '@angular2-material/progress-bar';
  import { MdListModule } from '@angular2-material/list';
  import { MdInputModule } from '@angular2-material/input';
  import { MdCardModule } from '@angular2-material/card';
  </code></pre>
  
  <p>Still I get the errors as in the snippet above. What could I be missing?
  Any help or tips appreciated.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p><strong><em>Dashboard.Module.ts</em></strong></p>
  
  <pre><code>import { NgModule }         from '@angular/core';
  import { CommonModule }     from '@angular/common';
  import { FormsModule } from '@angular/forms';
  
  
  import { HttpModule }    from '@angular/http';
  import { RouterModule } from '@angular/router';
  
  import { MdRadioModule } from '@angular2-material/radio';
  import { MdToolbarModule } from '@angular2-material/toolbar';
  import { MdButtonModule } from '@angular2-material/button';
  import { MdIconModule } from '@angular2-material/icon';
  import { MdProgressBarModule } from '@angular2-material/progress-bar';
  import { MdListModule } from '@angular2-material/list';
  import { MdInputModule } from '@angular2-material/input';
  import { MdCardModule } from '@angular2-material/card';
  
  import { AppService } from './app.service';
  
  import { DashboardRoutingModule }  from './Dashboard-routing.Module';
  
  @NgModule({
      imports: [  
                  CommonModule, HttpModule, FormsModule, RouterModule, 
                  MdRadioModule, MdToolbarModule, MdProgressBarModule,
                  MdButtonModule, MdIconModule, MdListModule,
                  MdCardModule, MdInputModule, MdToolbarModule,
                  DashboardRoutingModule],
    /*declarations: [  DashboardComponent ],*/
    exports:      [  CommonModule  ],
    providers:    [ AppService ]
  })
  export class DashboardModule { }
  </code></pre>
  
  <p><strong><em>DashBoardComponent.ts</em></strong></p>
  
  <pre><code>import { Component }   from '@angular/core';
  
  import { AppService } from './app.service';
  
  @Component({
  
    template: `
      &lt;router-outlet&gt;&lt;/router-outlet&gt;
    `
  })
  export class DashboardComponent {
    userName = '';
    constructor(service: AppService) {
      //this.userName = service.userName;
    }
  }
  </code></pre>
  
  <p><strong><em>dashboard-routing.Module.ts</em></strong></p>
  
  <pre><code>import { NgModule }            from '@angular/core';
  import { Routes, RouterModule }        from '@angular/router';
  
  import { FormsModule } from '@angular/forms';
  import { CommonModule }     from '@angular/common';
  import { HttpModule }    from '@angular/http';
  
  import { MdRadioModule } from '@angular2-material/radio';
  import { MdToolbarModule } from '@angular2-material/toolbar';
  import { MdButtonModule } from '@angular2-material/button';
  import { MdIconModule } from '@angular2-material/icon';
  import { MdProgressBarModule } from '@angular2-material/progress-bar';
  import { MdListModule } from '@angular2-material/list';
  import { MdInputModule } from '@angular2-material/input';
  import { MdCardModule } from '@angular2-material/card';
  
  
  import { DashboardComponent } from './DashBoardComponent';
  import { ReportListComponent }  from './ReportListComponent';
  import { ReportDetailComponent }  from './ReportDetailComponent';
  
  
  const routes: Routes = [
    { 
      children: [
        { path: 'Home/ReportList',    component: ReportListComponent },
        { path: 'Home/ReportDetail/:reportId', component: ReportDetailComponent }
      ]
    }
  ];
  
  
  @NgModule({
      imports: [RouterModule.forChild([routes])  
      ],
    declarations: [ DashboardComponent, ReportListComponent, ReportDetailComponent ],
    exports: [RouterModule, ReportListComponent, ReportDetailComponent, CommonModule]
  })
  
  
  export class DashboardRoutingModule {}
  </code></pre>