Where to put JavaScript files on an Ionic 2 app?

davidesp

What's the best location to place the auxiliary JavaScript files on an Ionic 2 application? I won't really want to put the source code inside the www directory since it is generated automatically.

Below you have a sample of the directory structure of a Hello World Ionic 2 application.

enter image description here

varun aaruru

If you go one more step inside pages folder you can see all of your app pages

ex:

--Home
 --home.html
 --home.scss
 --home.ts
  1. All of your page's view code goes into .html file
  2. CSS code goes into .scss file
  3. in ionic 2 we dont directly use javascript. we use type script. and ionic takes care of compiling that code by converting it into javascript.

So our typescript code goes into .ts fil

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Ionic 2 Upgrade where to put Typings

Where to put the app icons and splash screen files?

Flask: where to put static javascript files in templates

Where to put javascript files in the Phoenix framework

Where to put angular-cli.json content on Ionic 3 app

Where and how to put HTML files in Android app resource files?

Where to put source files for a Sinatra app mounted within a Rails app

Where to put custom sound file for push notifications in Ionic 2 for Android

best practice, java web app, where to put jsp files?

Where to put daemon files?

Symfony2 - Where should I put files uploaded by users?

Where is the correct place to put vendor files in Cakephp 2.X?

Where can I put app wide config in an Angular 2 project

Where to Put App-wide Logic - Angular (2+)

where put variable to this javascript

Changing Ionic 2 app files on Application Data folder

Where to put php files for security

Where to put my PHP files

Where to put Coherence configuration files?

Where to put django files on server?

Where to put Vue configurations (in an Ionic project)

Ionic Framework - Uploading to Ionic View app, not getting latest javascript files, possibly cache still exists?

Where to put document files and working files?

Where do I put static files in my React.JS app?

Can there be a content directory, where I can put files (compile time) and load files from (run time), inside an app?

Where to put data or config files loaded by my Java code when web app launches in a Vaadin 14 web app driven by Maven

Where to put text files in directory in Android

Where to put tests testing the configuration in the YAML files

Where to put downloaded files on filesystem (14.04)