Permalink
Browse files

Change template to templateUrl

  • Loading branch information...
1 parent aa4900d commit 78570cbcc1f5fde757d12d1f4c5129ca94065f45 @ericclemmons committed Mar 13, 2013
Showing with 6 additions and 5 deletions.
  1. +5 −5 src/client/app/js/directives/issuesDirective.js
  2. +1 −0 src/client/app/partials/issues.html
@@ -4,11 +4,11 @@ angular
])
.directive('appIssues', ['app.services.github', function(github) {
return {
- replace: false,
- restrict: 'A',
- template: '<span ng-transclude />&nbsp;<span class="badge" ng-bind="issues.data.length" />',
- transclude: true,
- link: function($scope, $element, attrs, controller) {
+ replace: false,
+ restrict: 'A',
+ templateUrl: 'app/partials/issues.html',
+ transclude: true,
+ link: function($scope, $element, attrs, controller) {
$scope.issues = github.query({ section: 'issues'});
}
};
@@ -0,0 +1 @@
+<span ng-transclude />&nbsp;<span class="badge" ng-bind="issues.data.length" />

0 comments on commit 78570cb

Please sign in to comment.