Will the Ionic View app only load pages from an ionic directory?

166 views Asked by At

I'm using the ionic and Trigger.io frameworks. To test on my device I'm using the ionic view app, which works fine when I'm loading a sample page from the www folder in the ionic directory, but I want to load the index from Trigger.io's main directory. How can I configure the ionic view app to load from the directory I want?

1

There are 1 answers

2
egvrcn On

You can change directory with documentRoot in your ionic.config.json file. In this example, rename the project app folder 'www' to 'app'.

{
  "name": "SmoothRiders",
   "gulpStartupTasks": [
    "watch"
  ],
  "documentRoot": "app",
  "createDocumentRoot": "app",
  "watchPatterns": [
    "app/js/*",
    "!app/css/**/*"
  ]
}

Refer this ionic page