Using Express Handlebars and Angular JS

前端 未结 5 646
南笙
南笙 2020-11-30 21:01

Background

I am currently building a website that uses NodeJS for the server, Express Handlebars(Just Handlebars but server side) , and hopefully AngularJS for som

5条回答
  •  情歌与酒
    2020-11-30 21:23

    Your first solution is possible, AngularJS allow to change the start/end symbols of text interpolation like this:

    appModule.config(function($interpolateProvider) {
      $interpolateProvider.startSymbol('{[{');
      $interpolateProvider.endSymbol('}]}');
    });
    

    Then you could use it in your template:

    {[{message}]}

    Also see: $interpolateProvider documentation

    Hope this helps.

提交回复
热议问题