要素が特定のクラスを持つ場合、ng-ifをtrueにすることが可能かどうか疑問に思っていました。 例: <div class="edge" ng-repeat="item in items">
<div ui-view ng-if="(ng-repeat div has class of edge)"
〜2.1.1 私はここで答えを試みたが、何の提案が私のために働いていない:ここで Angular 2 Component @Input not working は私のスピナーです私は別のコンポーネントで使用している部品: import {Component} from '@angular/core'
import {Post} from './post'
import {PostsServic
テンプレートコードをクリーンアップしようとしています。 <ul>
<li *ngIf="condition" *ngFor="let a of array1">
<p>{{a.firstname}}</p>
<p>{{a.lastname}}</p>
</li>
<li *ngIf="!condition" *ngFor="let b of arr