These are chat archives for AngularClass/angular2-webpack-starter

Jun 2017
Jun 07 2017 00:57

i am trying to learn angular2
i read through ngFor documentation but not sure how to display the liArraycontent values.
can you guys tell me how to display it.
providing my code below

import { Component } from '@angular/core';

selector: 'my-app',
template: <ul class= "master"> <li *ngFor ="let student of liArraycontent"> </li> </ul>
export class AppComponent {
name = 'Angular';
liArraycontent = ["testing 1", "testing 2", "testing3"]


Copyright 2017 Google Inc. All Rights Reserved.
Use of this source code is governed by an MIT-style license that
can be found in the LICENSE file at

Dan Cancro
Jun 07 2017 01:30
@texirv0203 you left out the values from the template. Try this: <li *ngFor ="let student of liArraycontent"> {{student}} </li>