Hosting Angular 2 app

前端 未结 5 1018
心在旅途
心在旅途 2021-02-05 21:21

I\'m new to Angular 2, I know host Angular 1.x on shared hosting like GoDaddy, but I don\'t have idea how publish Angular 2 a

5条回答
  •  时光取名叫无心
    2021-02-05 21:38

    Well, you can run ng build in your root application directory. It will create a dist directory containing the app and files. You can put this directory into the page the webserver will look for the index.html

提交回复
热议问题