You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2019/01/15 22:26:31 UTC

[GitHub] cottage14 opened a new issue #376: Tutorial: Error in code snippet

cottage14 opened a new issue #376: Tutorial: Error in code snippet
URL: https://github.com/apache/royale-asjs/issues/376
 
 
   In the tutorial for building your first Royale app [1], there is a code error in step 2, _The Data Model_ [2]. In discussing how to set up an HTTPService call to get data from a website, the example code is:
   
   ``<js:HTTPService id="configurator" source="project.json" complete="setConfig();fetchCommits()" />``
   
   When you try to compile and run the project, the compiler chokes on the "unknown" property, source.
   
   In the complete-enough code listing in step 5, _Build the Application_ [3], the code is correct:
   
   ``<js:HTTPService id="configurator" url="project.json" complete="setConfig();fetchCommits()" />``
   
   
   [1] https://apache.github.io/royale-docs/create-an-application/application-tutorial.html
   [2] https://apache.github.io/royale-docs/create-an-application/application-tutorial/data.html
   [3] https://apache.github.io/royale-docs/create-an-application/application-tutorial/build.html

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services