Reputation: 13
We are trying to create a custom app using Angular 6. We managed to deploy an Angular 2 app using this ( https://github.com/tastejs/todomvc/tree/gh-pages/examples/angular2 ) example, adding the cumulocity.json file and zipping it.
With Angular 6 we are using Angular CLI to create a project, and used "ng build" to build the app but when we zip the content of the dist folder, even when adding cumulocity.json to it, we only get a blank page when deploying it to the tenant (it's working with "ng serve" on my computer). Any hints how we should proceed or what we are missing?
Thanks :)
Upvotes: 1
Views: 215
Reputation: 1
Kindly check this link, maybe this is your answerCLick
When you build your angular app after checking the doc. After that, you are going to make the zip. Before making zip open index.html inside your build folder and add a "/" on-base href. CLICK IMG your href shd look like this
Upvotes: -2