Change a Tag Dynamically? Angular 2

前端 未结 4 500
-上瘾入骨i
-上瘾入骨i 2020-12-16 23:28

Is there anyway to change this:

Some text here

To:

Some text here
4条回答
  •  清酒与你
    2020-12-16 23:52

    Try this, where you manage (bool) show_div in your controller.

    //Js
    $scope.show_div = true;
    
    
    
    Some text here
    Some text here

提交回复
热议问题