Meteor and AngularJS delimiters conflicts -
meteor using handlebars mustache {{}} angular using interpolate same delimiters {{}}
then, using angularjs on meteor result in obvious conflicts.
fortunately there way change angularjs delimiters using example [[]]
:
var myapp = angular.module('myapp', [], function($interpolateprovider) { $interpolateprovider.startsymbol('[['); $interpolateprovider.endsymbol(']]'); });
as know there no way change meteor's one, nor disable blaze.
still experienced side effect: while trying use third party framework such ionicframework, directives using {{}}
delimiters within own code. means replacing {{}}
[[]]
broke other part of project…
- a brute force fix search , replace {{}} occurrences [[]] using preprocessor.
- a workaround manually wrap or replace non working directive code know.
both seems cumbersome… wish able change start , end symbols on packages, feasible ?
yes, annoying thing...
angularjs amazing letting meteor not.
in meantime, there lot of packages developers wrote take care of you, ionic example: https://github.com/urigo/meteor-ionic
another possible solution use gulp or grunt or create task scans templates in meteor project , changes them [[ ]]
of course best solution able import bower packages meteor , able add them is.
here 2 issue related that can follow , +1 them:
Comments
Post a Comment