Skip to content

Instantly share code, notes, and snippets.

@truongsinh
Last active August 29, 2015 14:23
Show Gist options
  • Save truongsinh/40d382cea3eb4d69cf6e to your computer and use it in GitHub Desktop.
Save truongsinh/40d382cea3eb4d69cf6e to your computer and use it in GitHub Desktop.
./path/to/my.html
<!-- ./path/to/my.html -->
<div>
"SmarpShare"
<span>is<span>
awesome, dud'
</div>
// ./path/my-component-name.ts
angular
.module("myComponentName")
.directive("myComponentName", function() {
return
{
restrict: 'E',
templateUrl: './path/to/my.html',
controller: myComponentNameCtrl,
controllerAs: "vm",
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment