2
是否爲ng-show
的聚合物等效物?這裏是什麼,我想轉換一個片段例如:聚合物相當於ng-show?
<h1>Greeting</h1>
<div ng-show="authenticated">
<p>The ID is {{controller.greeting.id}}</p>
<p>The content is {{controller.greeting.content}}</p>
</div>
<div ng-show="!authenticated">
<p>Login to see your greeting</p>
</div>
dom-if相當於ng-if! –