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?
Asked
Active
Viewed 157 times
1 Answers
1
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

Technohacker
- 735
- 5
- 19

egvrcn
- 974
- 10
- 27
-
There is no ionic.project file only ionic.config.json. in that file there is a "name" and "app id" property so I tried to add the document root and CreateDocumentRoot properties like in the example but that didn't work. I'll give the bounty to you anyway however if no one else answers by the time it runs out. – Spilot Sep 22 '16 at 01:03
-
Thanks Spilot. The new name of ionic.project file is ionic.config.json. I hope it works for you. – egvrcn Sep 22 '16 at 05:44