Separate Angular2 TypeScript files and JavaScript files into different folders, maybe 'dist‘

后端 未结 16 2308
清酒与你
清酒与你 2020-11-28 19:52

I am using the 5 min quickstart from angular.io website, which contain a file structure like this:

angular2-quickstart
 app
   app.component.ts
   boot.ts
 i         


        
16条回答
  •  甜味超标
    2020-11-28 20:13

    Thanx raheel shan, your answer gave a head start,

    As @Adavo rightly asked above in comments

    Unfortunately, my html/css files is not present in the dist folder. How to do in order to copy all html/css in dist folder ?

    The answer to this question is * provide full path to HTML/CSS File using '/' (from root Directory) in all the .ts Files and mainly in "templateURL" property of @Component

    after a lot of time - I got it figured it out - without using Gulp :) Yipppeee

提交回复
热议问题