Skip to content
Browse files

Merge pull request #80 from ericclemmons/79-templateUrl

[RFC] Change template to templateUrl
  • Loading branch information...
2 parents aa4900d + 78570cb commit 5c166767dfe6dd71d385665c792f1af41cede121 @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
View
10 src/client/app/js/directives/issuesDirective.js
@@ -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'});
}
};
View
1 src/client/app/partials/issues.html
@@ -0,0 +1 @@
+<span ng-transclude />&nbsp;<span class="badge" ng-bind="issues.data.length" />

0 comments on commit 5c16676

Please sign in to comment.
Something went wrong with that request. Please try again.