Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

ngTagsInput template error when customize configuring the interpolation markup #151

Closed
truonghoangnguyen opened this issue May 9, 2014 · 4 comments

Comments

@truonghoangnguyen
Copy link

My application configuring the interpolation markup from {{ }} to (( )) then get error with ngTagsInput, cause in ngTagsInput/tags-input.html used {{ }}

https://docs.angularjs.org/api/ng/provider/$interpolateProvider
thanks

@mbenford
Copy link
Owner

@truonghoangnguyen Thanks for reporting this issue! 👍 I'll add it to the backlog.

@mbenford mbenford added this to the Post-2.0.1 milestone May 11, 2014
@mbenford mbenford modified the milestones: 2.1.0, Post-2.0.1 Jun 21, 2014
mbenford added a commit that referenced this issue Jun 22, 2014
Replace the interpolation markup in tagsInput directive's template
with the ngBind directive.

Relates to #151
@mbenford
Copy link
Owner

It seems that I haven't fixed anything, since Angular already takes care of (de)normalizing templates.

Would you mind providing more details on the error you have run into?

@mbenford mbenford reopened this Jun 22, 2014
@truonghoangnguyen
Copy link
Author

my current config

angular.module('myApp', [])
.config(['$interpolateProvider', function($interpolateProvider) {
        $interpolateProvider.startSymbol('((');
        $interpolateProvider.endSymbol('))');
}])

for workaround I just replace {{}} with (()) on template code.

I have no idea for fix this bug but angularjs ui (http://angular-ui.github.io/bootstrap/) is work correctly with my config

Thank you for you hardwork

@mbenford
Copy link
Owner

Oddly enough, I tested it with [[ ]] and everything worked just fine, but when I tried to use (( )), the error you had described showed up.

Anyways, I've removed the dependency on interpolation symbols in all templates, so that bug is supposed to be fixed already. It'll be part of the next release, 2.1.0 (you can grab the code in the master branch and build it yourself right now, though).

Thanks for your feedback! 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants