Categories
angularjs front-end

Angular.js Interpolation while using Express and Handlebars

You may run into an angular rendering issue if your stack includes Node+Express and you are using Handlebars as your template engine. The main issue is that handlebars and angular share the same symbols {{ }} to render or do data binding.  The fix that I found useful was using $interpolateProvider from angular. The sample code below will update the symbols used in angular to be {[{ }]} note the added brackets.

(function(window,angular){

  var app = angular.module('myApp', []);
      app.config(function($interpolateProvider) {
    $interpolateProvider.startSymbol('{[{');
If you're wired to the Net you can order your medications at any convenient time. canadian pharmacies viagra Precautions to be in used- Taking  viagra for women uk the medication with the help of any of registered internet-based suppliers. Some healthy habits which can help to avoid long-term injury.  commander cialis is used to treat male sexual dysfunction. Failure to do so will generate ineffectiveness of the workouts accomplished. twomeyautoworks.com generic cialis in australia     $interpolateProvider.endSymbol('}]}');
  });

})(window,angular);