diff options
| author | Misko Hevery | 2012-03-26 21:45:38 -0700 |
|---|---|---|
| committer | Misko Hevery | 2012-03-28 11:16:36 -0700 |
| commit | 798bca62c6f64775b85deda3713e7b6bcc7a4b4d (patch) | |
| tree | ed80b4ad6ca6a602701f50240915767f8a3105bc /docs/src | |
| parent | 8218c4b60b82927234cf545253266f288fa936c2 (diff) | |
| download | angular.js-798bca62c6f64775b85deda3713e7b6bcc7a4b4d.tar.bz2 | |
chore(resource): moved to module
Diffstat (limited to 'docs/src')
| -rw-r--r-- | docs/src/templates/docs.js | 2 | ||||
| -rw-r--r-- | docs/src/templates/index.html | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/docs/src/templates/docs.js b/docs/src/templates/docs.js index 056b1039..9627dc60 100644 --- a/docs/src/templates/docs.js +++ b/docs/src/templates/docs.js @@ -146,7 +146,7 @@ function TutorialInstructionsCtrl($cookieStore) { }; } -angular.module('ngdocs', ['ngdocs.directives'], function($locationProvider, $filterProvider, $compileProvider) { +angular.module('ngdocs', ['ngdocs.directives', 'ngResource'], function($locationProvider, $filterProvider, $compileProvider) { $locationProvider.html5Mode(true).hashPrefix('!'); $filterProvider.register('title', function(){ diff --git a/docs/src/templates/index.html b/docs/src/templates/index.html index 9c30df96..ccd8f108 100644 --- a/docs/src/templates/index.html +++ b/docs/src/templates/index.html @@ -18,7 +18,6 @@ baseUrl = location.href.replace(rUrl, indexFile), jQuery = /index-jq[^\.]*\.html$/.test(baseUrl), debug = /index[^\.]*-debug\.html$/.test(baseUrl), - angularPath = debug ? '../angular.js' : '../angular.min.js', headEl = document.getElementsByTagName('head')[0], sync = true; @@ -28,10 +27,15 @@ type: 'text/css'}); addTag('script', {src: 'syntaxhighlighter/syntaxhighlighter-combined.js'}, sync); if (jQuery) addTag('script', {src: 'jquery.min.js'}); - addTag('script', {src: angularPath}, sync); + addTag('script', {src: path('angular.js')}, sync); + addTag('script', {src: path('angular-resource.js') }, sync); addTag('script', {src: 'docs-combined.js'}, sync); addTag('script', {src: 'docs-keywords.js'}, sync); + function path(name) { + return '../' + name.replace(/\.js$/, debug ? '.js' : '.min.js'); + } + function addTag(name, attributes, sync) { var el = document.createElement(name), attrName; |
