Skip to content

Instantly share code, notes, and snippets.

@jbmilgrom
Last active May 19, 2016 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbmilgrom/de7b6f1e6184f52da2ed9b96ef33afc5 to your computer and use it in GitHub Desktop.
Save jbmilgrom/de7b6f1e6184f52da2ed9b96ef33afc5 to your computer and use it in GitHub Desktop.
var fullName = 'last + ", " + first';
var getFullName = $parse(fullName); // getFullName is the parseFn!
var context = {first: 'steph', last: 'curry'};
getFullName(context); // => curry, steph
context = {first: 'russ', last: 'westbrook'};
getFullName(context); // => westbrook, russ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment