Skip to content

Instantly share code, notes, and snippets.

@gsans
Created November 26, 2014 21:03
Show Gist options
  • Save gsans/8ac10743f389a52010a9 to your computer and use it in GitHub Desktop.
Save gsans/8ac10743f389a52010a9 to your computer and use it in GitHub Desktop.
<profile onAlert=”alert(message)”></profile>
scope : { local_onAlert: “&onAlert” } //using alias
scope : { onAlert: “&” } //abbreviation when using identical names
//Usage:
// local_onAlert({message:”hey”});
// onAlert({message:”hey”});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment