facebook

Displaying Images in Angular IDE

  1. CodeMix & Angular IDE
  2.  > 
  3. Webclipse 1.x Help
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #515351 Reply

    nidhisakhala
    Participant

    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.
    It just displays the dimension box
    I wrote a normal HTML code outside the IDE and it displays the image properly. Can anybody help me?

Viewing 1 post (of 1 total)
Reply To: Displaying Images in Angular IDE

You must be logged in to post in the forum log in