Skip to content

Instantly share code, notes, and snippets.

@amorri40
Last active August 29, 2015 14:07
Show Gist options
  • Save amorri40/324bfa293cb6a3e60e02 to your computer and use it in GitHub Desktop.
Save amorri40/324bfa293cb6a3e60e02 to your computer and use it in GitHub Desktop.
useful Javascript
/*
Angular
*/
//http://stackoverflow.com/questions/13681116/angularjs-dynamic-routing
function add_defaults_to_object(defaults, component_without_defaults) {
var component_with_defaults = $.extend( {}, defaults, component_without_defaults);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment