I'm trying to use DynamicComponentLoader and the sample code is below:
import {Component, View, bootstrap, OnInit, DynamicComponentLoader} from 'angular2';
...
DynamicComponentLoader.loadIntoLocation(PersonsComponent, itemElement);
When I run the app, I get the error:
DynamicComponentLoader.loadIntoLocation is not a function
How can I use DynamicComponentLoader.loadIntoLocation in ES6 JavaScript using class?