how to best conditional template show in angular 4

后端 未结 3 536
别那么骄傲
别那么骄傲 2021-01-02 02:54

currently, i am practiced angular 4. when a normal user view this then show public content When A Registered user enter the web page then show edit or some content

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-02 03:23

    use NgIf with else condition

    some Content here......
    some Content here .....

提交回复
热议问题