Using Express Handlebars and Angular JS

前端 未结 5 643
南笙
南笙 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:15

    You can always use the ng-bind syntax instead:


    This is identical to

    {{user.profile.description}}


    From the Angular docs for ngBind:

    Typically, you don't use ngBind directly, but instead you use the double curly markup like {{ expression }} which is similar but less verbose.

    It is preferable to use ngBind instead of {{ expression }} if a template is momentarily displayed by the browser in its raw state before Angular compiles it. Since ngBind is an element attribute, it makes the bindings invisible to the user while the page is loading.

提交回复
热议问题