Я пытаюсь импортировать "ComponentResolver"Ошибки при импорте ComponentResolver в компоненте (Угловые 2)
import { Component, HostListener, ViewContainerRef, ViewChild, ComponentResolver } from '@angular/core';
И у меня есть ошибка:
Module '"/home/maksym/untill/trunk/unTill.Modern/Code/AppRc6/node_modules/@angular/core/index"' has no exported member 'ComponentResolver'.
Моей зависимость:
"@angular/common": "~2.0.1",
"@angular/compiler": "~2.0.1",
"@angular/core": "~2.0.1",
"@angular/forms": "~2.0.1",
"@angular/http": "~2.0.1",
"@angular/platform-browser": "~2.0.1",
"@angular/platform-browser-dynamic": "~2.0.1",
"@angular/router": "~3.0.1",
"@angular/upgrade": "~2.0.1",
Как я купил эту проблему?
У вас есть пример использования entryComponents? –
Посмотрите первый вариант этого ответа http://stackoverflow.com/questions/39678963/load-existing-components-dynamically-angular-2-final-release/39680765#39680765 – yurzui
Спасибо, ты действительно помог мне! –