mirror of
https://github.com/correl/melpa.git
synced 2024-12-22 19:17:27 +00:00
Don't use ng-if inside ng-repeat
Results in error: Error: Multiple directives [ngIf, ngRepeat] asking for transclusion on: <!-- ngIf: pkg.dependencies.length --> at Error (<anonymous>) at O (https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js:49:506) at A (https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js:45:337) at W (https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js:40:256) at W (https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js:40:338) at W (https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js:40:338) at W (https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js:40:338) at W (https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js:40:338) at y (https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js:39:7) at k (https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js:165:453)
This commit is contained in:
parent
479251acab
commit
f76802440d
1 changed files with 6 additions and 6 deletions
|
@ -15,21 +15,21 @@
|
||||||
<dd>{{pkg.downloads}} <span class="muted">(all versions)</span></dd>
|
<dd>{{pkg.downloads}} <span class="muted">(all versions)</span></dd>
|
||||||
<dt>Source</dt>
|
<dt>Source</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<a ng-if="pkg.sourceURL" href="{{pkg.sourceURL}}">{{pkg.source}}</a>
|
<a ng-show="pkg.sourceURL" href="{{pkg.sourceURL}}">{{pkg.source}}</a>
|
||||||
<span ng-if="!pkg.sourceURL">{{pkg.source}}</span>
|
<span ng-show="!pkg.sourceURL">{{pkg.source}}</span>
|
||||||
</dd>
|
</dd>
|
||||||
<dt>Dependencies</dt>
|
<dt>Dependencies</dt>
|
||||||
<dd><span ng-if="pkg.dependencies.length" ng-repeat="dep in pkg.dependencies">
|
<dd><span ng-show="pkg.dependencies.length > 0" ng-repeat="dep in pkg.dependencies">
|
||||||
<a ng-if="havePackage(dep.name)" href="#/{{dep.name}}">{{dep.name}} {{dep.version}}</a>
|
<a ng-if="havePackage(dep.name)" href="#/{{dep.name}}">{{dep.name}} {{dep.version}}</a>
|
||||||
<span ng-if="!havePackage(dep.name)">{{dep.name}} {{dep.version}}</span>
|
<span ng-if="!havePackage(dep.name)">{{dep.name}} {{dep.version}}</span>
|
||||||
</span>
|
</span>
|
||||||
<span class="muted" ng-if="!pkg.dependencies.length">-</span>
|
<span class="muted" ng-show="pkg.dependencies.length == 0">-</span>
|
||||||
</dd>
|
</dd>
|
||||||
<dt>Needed by</dt>
|
<dt>Needed by</dt>
|
||||||
<dd><span ng-if="reverseDependencies.length" ng-repeat="dep in reverseDependencies | orderBy:'name'">
|
<dd><span ng-show="reverseDependencies.length > 0" ng-repeat="dep in reverseDependencies | orderBy:'name'">
|
||||||
<a href="#/{{dep.name}}">{{dep.name}}</a>
|
<a href="#/{{dep.name}}">{{dep.name}}</a>
|
||||||
</span>
|
</span>
|
||||||
<span class="muted" ng-if="reverseDependencies.length == 0">-</span>
|
<span class="muted" ng-show="reverseDependencies.length == 0">-</span>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue