angular / angular.js

AngularJS - HTML enhanced for web apps!
https://angularjs.org
MIT License
58.8k stars 27.48k forks source link

ngList renders scope variable instead of the value (doesn't support interpolation) #14624

Open andikrueger opened 8 years ago

andikrueger commented 8 years ago

What is the current behavior?

Demo https://plnkr.co/edit/aygfAGwMluonXRZGWEfy?p=preview

What is the expected behavior? ng-list uses the scope variable and resolves the value.

What is the motivation / use case for changing the behavior?

Narretz commented 8 years ago

ngList doesn't currently interpolate the ngList attribute (separator), so this works as expected. This means you can't have a dynamic list delimiter. This can be a feature, but I don't know how frequently this is needed.