Hello,
I am just beginning to work on the Angular IDE for a project in Angular 2. I wanted to display an image and wrote the following code.
import {Component} from '@angular/core';
import {Observable} from 'rxjs/Rx';
@Component({
selector: 'app-root',
template: '<img src="/Users/nidhisakhala08/Downloads/image1.png" alt = " no display" style = "height:500px; width:500px;"/> <br> {{num}} '
})
export class AppComponent {
}
This is the output I got for this code.
I wrote a normal HTML code outside the IDE and it displays the image properly. Can anybody help me?