I need to integrate an existing component into my app, but I am facing some issues with the dependencies. Originally, the sample code provided me with these dependencies:
import {CORE_DIRECTIVES, FORM_DIRECTIVES, NgClass} from 'angular2/common';
Now, I am transitioning to using '@angular'
instead of 'angular2'
, which I believe should look something like this:
import { Component, OnInit, CORE_DIRECTIVES } from '@angular/core';
import { FORM_DIRECTIVES } from '@angular/forms';
However, I encountered the following error:
mypath/node_modules/@angular/forms/index"' has no exported member 'FORM_DIRECTIVES'.
mypath/node_modules/@angular/core/index"' has no exported member 'CORE_DIRECTIVES'.
How can I include FORM_DIRECTIVES
now that they are not part of angular2
? What is the new way or replacement for resolving such dependencies?
I have searched through the angular changelog but couldn't find any relevant information.