Not understanding views
已回答
Thank you in advance for answering this:
I am a new IntelliJ IDEA user and I setup a static web project using AngularJS. I noticed in the project window that there are two view folders marked view1 and view2. Both have an html, js and test.js file in them. What is the purpose of these two views and which one should I use? Also, there is an index-async.html file. What is the purpose for that?
Is there a tutorial I can go to to see what all of these various files are for?
Many thanks,
Charles
请先登录再写评论。
AngularJS project template just creates a copy of angular project skeleton available at https://github.com/angular/angular-seed. View1 and view2 folders include templates for pages that will be opened when clicking the corresponding links in browser and javascript files that define the logic of these pages... index-async.html is mostly the same as index.html, but
uses asynchronous .js files loading.Seems you need a basic Angular 1 tutorial... see https://docs.angularjs.org/tutorial, http://www.w3schools.com/angular/ - you may find them helpfulElena:
Many thanks. I will look at the tutorials.
Charles