Skip to content

Instantly share code, notes, and snippets.

@toddbranch
Created September 28, 2015 16:49
Show Gist options
  • Save toddbranch/ccbc79abee837dfdf58c to your computer and use it in GitHub Desktop.
Save toddbranch/ccbc79abee837dfdf58c to your computer and use it in GitHub Desktop.
Angular Caching
var userEmail = $('.user-email').text();
var commonContactsWidget = document.createElement('common-contacts-widget');
commonContactsWidget.setAttribute('user-email', userEmail);
$('.some-area-of-the-page').append(commonContactsWidget);
angular.bootstrap(commonContactsWidget, ['ng', 'commonContactsModule']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment