I am trying to include one existing component in my application and from the sample code, I have these dependencies:
import {CORE_DIRECTIVES, FORM_DIRECTIVES, NgClass} from 'angular2/common';
Now I use '@angular'instead 'angular2', which I think would be something like this:
import { Component, OnInit, CORE_DIRECTIVES } from '@angular/core';
import { FORM_DIRECTIVES } from '@angular/forms';
However i get this 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, and if they are no longer part angular2, what is a replacement or a new way to resolve dependencies?
I checked angular changelog but found nothing
source
share