facebook

RandomWord app in tutorial "Creating Your First Angular Application"

  1. CodeMix & Angular IDE
  2.  > 
  3. Webclipse 1.x Help
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #522122 Reply

    sbelt
    Participant

    I have completed the “Creating Your First Angular Application” at

    https://www.genuitec.com/products/angular-ide/learning-center/angular-2-application/

    It is not working (displays the ‘title’ but not the random word). I think the issue is that we have created this getNewRandomWord() method, but I do not see it being called anywhere. Further, looking at Chrome’s Network logs, the API at ‘http://www.setgetgo.com/randomword/get.php’ is never called. Can someone point me at where this method is getting invoked, or is there a fiddle or something where I can see it working?

    Thanks!

    #522126 Reply

    Hi sbelt,

    Thanks for the report!
    We will update the tutorial shortly with the missing step but meanwhile in order to make the call to the service please update the contents of “src/app/app.component.html” with the following:

    <h1>
      {{title}}
    </h1>
    
    <button (click)="getNewRandomWord()">Get New Random Word</button>
    
    <app-random-words [words]="randomWords"></app-random-words>

    Cheers,
    Sal

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: RandomWord app in tutorial "Creating Your First Angular Application"

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