This commit is contained in:
birocarol 2016-03-18 11:06:08 +02:00
parent 3ac3bda32f
commit fca062bc5e

View file

@ -52,7 +52,7 @@ The **plugins** folder is nice too , here will reside the plugins which helps to
The **res** folder contains OS specific icons (e.g. rounded icons for IOS and square icons for Android) and screens. Finally in the upper part of the soulution there is a **test** folder where the unit and integration tests will reside.
The next folder **www** contains the project itself, the common code base. We see here a bunch of files which are nicely and clearly organized, maybe not for you yet, but hopefully things become more clear with the next code snippet of the index.html which is the core of the SPA and where the whole app is running:
~~~
```html
<!doctype html>
<html ng-app="travelExpensesApp" ng-csp>
<head>
@ -98,7 +98,7 @@ The next folder **www** contains the project itself, the common code base. We se
<div ng-view></div>
</body>
</html>
~~~
```
Being a SPA everything runs in one place. All the necessary files are included in the header : first the app specific css files, then the css override file which is replaced with OS specific one at build time. Next are included the AngularJS and AnfularJS specific libraries and then comes the platform specific javascript overrides. Until now we have included only libraries and overrides, what comes from now is the base of the app the index.js.