javascript - Parse string and loop angularjs -


i take string in format this: "something example $takethis $takethisalso". want parse string , list of strings have $ ($xxx). this:

foreach($xxx in list) {    var field = xxx; // here want field have value takethis    // field } 

so best practice in angular. use old plain javascript or maybe have angular.

sounds want filter function on angular, can accept predicate

https://docs.angularjs.org/api/ng/filter/filter


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -