check out the project and run npm install and npm start to view the demos
visit Modal Templates in Angular2: Part 1 to view the original post
check out Dev 6's blog for more angular tutorials
####Note: After this writing, ng-bootstrap has modified their modal implementation to accept Component Types. The techniques discussed here can still be used to create TemplateRef objects.