Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #80 from ericclemmons/79-templateUrl

[RFC] Change template to templateUrl
  • Loading branch information...
commit 5c166767dfe6dd71d385665c792f1af41cede121 2 parents aa4900d + 78570cb
@ericclemmons authored
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" />
Please sign in to comment.
Something went wrong with that request. Please try again.