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
Comments
Post a Comment