What is the equivalent of ngShow and ngHide in Angular 2+?

后端 未结 18 2215
离开以前
离开以前 2020-11-22 14:46

I have a number of elements that I want to be visible under certain conditions.

In AngularJS I would write

stuff
18条回答
  •  情话喂你
    2020-11-22 15:34

    Use hidden like you bind any model with control and specify css for it:

    HTML:

    
    

    CSS:

    [hidden] {
       display: none;
    }
    

提交回复
热议问题