Where do I import FORM_DIRECTIVES, FormBuilder, ControlGroup, Validators, AbstractControl from?


#1

Where do I import FORM_DIRECTIVES, FormBuilder, ControlGroup, Validators, AbstractControl from? I’ve tried like this but it doesnt work.


#2

Start reading here.


#3

It has no mention of any of the modules I asked about


#4

That’s because they’re obsolete. The real question that you should have asked is “what has changed with forms in Angular 2 over the last 6 months?” and the answer is “quite a lot”, so you should just start reading how things work now. You’re not going to be able to make that old code work by changing a couple of imports.