Skip to content

Instantly share code, notes, and snippets.

@JesterXL
Last active September 5, 2015 15:52
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 JesterXL/bf8156a61df7704c4e4a to your computer and use it in GitHub Desktop.
Save JesterXL/bf8156a61df7704c4e4a to your computer and use it in GitHub Desktop.
Angular + Polymer
// Polymer component should have content tags in template
<template>
<!-- paper stuff -->
<content></content>
</template>
// Angular external directive template should have transclude target & have transclude to true
<your-polymer-component>
<div ng-transclude></div>
</your-polymer-component>
// finally, your Angular directive should have ui-view target for ui-router
<your-angular-polymer-wrapper>
<div ui-view></div>
</your-angular-polymer-wrapper>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment