1

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 :)

Vinh Tran
  • 13
  • 4
  • Do you use routing for it? If yes pls see [this Github issue](https://github.com/dwiyatci/c8y-angular-polymer-boilerplate/issues/1#issuecomment-412891427). Maybe that answers your question? – Jan Hommes Sep 06 '18 at 08:06

1 Answers1

-2

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

  • 1
    What is in that link? Why should we check it out? – Dharman Mar 27 '22 at 22:56
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Mar 28 '22 at 03:58
  • To deploy and build angular app you can check the link – JYOTIRMOY MUKHOPADHYAY Mar 29 '22 at 04:52
  • A good answer should not depend on external links. Please quote the relevant material from the link in your answer. – General Grievance Mar 30 '22 at 12:29