Hands-On Serverless Applications with Go by Mohamed Labouardy

Hands-On Serverless Applications with Go by Mohamed Labouardy

Author:Mohamed Labouardy
Language: eng
Format: epub, mobi
Tags: COM091000 - COMPUTERS / Cloud Computing, COM051010 - COMPUTERS / Programming Languages / General, COM048000 - COMPUTERS / Systems Architecture / Distributed Systems and Computing
Publisher: Packt Publishing
Published: 2018-08-29T12:40:06+00:00


...

}

In the HTML template of the preceding component, use the getters of the Movie class to get the values of attributes:

<div class="card">

<img class="card-img-top" [src]="movie.getCover()" alt="{{movie.getName()}}">

<div class="card-block">

<h4 class="card-title">{{movie.getName()}}</h4>

<p class="card-text">{{movie.getDescription()}}</p>

<a href="#" class="btn btn-primary">Rent</a>

</div>

</div>

Finally, make the ListMoviesComponent nest the MovieItemComponent child inside an *ngFor repeater, and bind themovie instance to the child's movie property on each iteration:

<div class="row">

<div class="col-sm-3" *ngFor="let movie of movies">

<movie-item [movie]="movie"></movie-item>

</div>

</div>

In the browser, you should ensure that the movie's attributes are properly defined:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.