• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

AngularJs - js module is not being read

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All!

I have just started working on AngularJS.
I completed setting up AngularJS Eclipse Plugin following the tutorial mentioned below

https://github.com/angelozerr/angularjs-eclipse/wiki/Getting-Started

However, post that i am not able to get my html file to read my module in js file.
Although it gives me suggestions correctly in both my html and js files during typing, when i run my html file it shows

Hello! {{msg}}

It works perfectly in Fiddle
http://jsfiddle.net/melwinpd/s9q2Lgdk/5/

Also strangely if i replace ng-app="myApp" with just ng-app it works perfectly fine.

Am i missing something in my eclipse setup? Or is it the folder structure i have got wrong? I have attached my folder structure.

Please help me! I have been struggling for hours now


TIA!
Melwin
now.jpg
[Thumbnail for now.jpg]
Folder Structure
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the future please UseCodeTags to post your code as text, not as screen shots (which are not searchable).

Where in your HTML file do you include your JavaScript code?
 
Melwin Payyanadan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. your query resolved my problem. I had missed adding the reference to the js file.
reply
    Bookmark Topic Watch Topic
  • New Topic