frandiox / OnsenUI-Todo-App

Onsen UI 2.0 To-Do sample application implemented in Vanilla JavaScript.
MIT License
100 stars 74 forks source link

App not working when running from local machine #7

Closed humanitiesclinic closed 4 years ago

humanitiesclinic commented 4 years ago

Hi,

I tried downloading the code, and running it without modifying anything. I opened index.html directly like a file in my browser. The controls don't work. I can see the UI like "Pending", "Completed" tab, and "New". But when I click on "New" nothing happens. When I click on the Menu icon, nothing happens as well. Am I doing something wrong? Can the app be opened directly in a browser?

frandiox commented 4 years ago

@humanitiesclinic You need to serve the app with a tool like http-server.

humanitiesclinic commented 4 years ago

Oh I see. Can I use Cordova with this OnsenUI project? I notice it has some node modules, I am not sure how to include node modules in Cordova as of now. Is it possible?

frandiox commented 4 years ago

@humanitiesclinic It's supposed to work in Cordova, yes. I don't see any node_modules folder in the repo 🤔