I just started learning angular2, and I didn’t understand it very well. I was confused, so I asked the seniors in the company to look at the project files they had done before, and found that each of their component files had a corresponding Module file. I would like to ask if it must be like this? If not, under what circumstances should it be created and under what circumstances should it not be used?
I hope someone who knows can give me an answer. Thank you very much! ! !
This is not necessary. Normal functions are divided by modules. Each module has a corresponding module file. You can refer to the API on the official website
Recommend an introductory tutorial for you: http://www.hubwiz.com/course/...