Update to Angular 2 Beta 1. New bug: no longer waits for server-side HTTP requests to complete - waiting for info to resolve this.

This commit is contained in:
SteveSandersonMS
2016-01-25 15:13:30 +00:00
parent f44b84f2ab
commit 381b7b884e
32 changed files with 113 additions and 100 deletions

View File

@@ -4,7 +4,7 @@
</div>
<ul class="row list-unstyled" id="album-list">
<li *ng-for="#album of mostPopular" class="col-lg-2 col-md-2 col-sm-2 col-xs-4 container">
<li *ngFor="#album of mostPopular" class="col-lg-2 col-md-2 col-sm-2 col-xs-4 container">
<album-tile [albumData]="album"></album-tile>
</li>
</ul>

View File

@@ -1,5 +1,6 @@
import * as ng from 'angular2/angular2';
import * as ng from 'angular2/core';
import { Http } from 'angular2/http';
import { NgFor } from 'angular2/common';
import { AlbumTile } from '../album-tile/album-tile';
import * as models from '../../../models/models';
@@ -8,7 +9,7 @@ import * as models from '../../../models/models';
})
@ng.View({
templateUrl: './ng-app/components/public/home/home.html',
directives: [ng.NgFor, AlbumTile]
directives: [NgFor, AlbumTile]
})
export class Home {
public mostPopular: models.Album[];