Alternatives to $templateCache in Angular2

前端 未结 4 591
深忆病人
深忆病人 2020-12-31 08:41

When we think of using template in Angular2 or Angular1.X, we know below is one of the basic way of writing:

template: \'./template-ninja.html\'

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-31 08:48

    gulp-ng2-template-wrap

    Hi,

    Hope this will be helpful to you: I just wrote a small module that allows you to bundle all of your html files into single ES6 module.

    https://github.com/evgenys91/gulp-ng2-template-wrap

提交回复
热议问题