Angular 2 : multiple HTML pages within same component

前端 未结 3 1119
礼貌的吻别
礼貌的吻别 2020-12-10 04:26

I am new to angular 2, I have a component named Register, in this 1 component I have 5 HTML pages where one click of 1st register page I will go to the 2nd register page and

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-10 04:46

    In Angular components are basically a patch of the screen means there should always be single template for each component class. If you want to use multiple templates for single component class then As per terminology it doesn't refer to component definition. If you want to use then create a base class and create 3 separate component and extend the base class.

提交回复
热议问题