| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3cb9ee5 commit 39cc970
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,17 +1,17 @@ | |||
| 1 | 1 | Package.describe({ | |
| 2 | - name: "angular-templates", | ||
| 3 | - summary: "Compile angular templates into the template cache", | ||
| 4 | - version: "1.0.0", | ||
| 5 | - git: "https://github.com/Urigo/angular-meteor.git", | ||
| 2 | + name: 'angular-templates', | ||
| 3 | + summary: 'Compile angular templates into the template cache', | ||
| 4 | + version: '1.0.0', | ||
| 5 | + git: 'https://github.com/Urigo/angular-meteor.git', | ||
| 6 | 6 | documentation: null | |
| 7 | 7 | }); | |
| 8 | 8 | ||
| 9 | 9 | Package.registerBuildPlugin({ | |
| 10 | - name: "compileNGTemplate", | ||
| 10 | + name: 'compileNGTemplate', | ||
| 11 | 11 | sources: [ | |
| 12 | - "plugin/ng-caching-html-compiler.js", | ||
| 13 | - "plugin/ng-html-scanner.js", | ||
| 14 | - "plugin/ng-template-compiler.js" | ||
| 12 | + 'plugin/ng-caching-html-compiler.js', | ||
| 13 | + 'plugin/ng-html-scanner.js', | ||
| 14 | + 'plugin/ng-template-compiler.js' | ||
| 15 | 15 | ], | |
| 16 | 16 | use: [ | |
| 17 | 17 | 'caching-html-compiler@1.0.2', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,12 @@ | |||
| 1 | - if (Package['modules-runtime']) { | ||
| 2 | - var require = Package['modules-runtime'].meteorInstall(); | ||
| 3 | - require('angular'); | ||
| 1 | + if (!window.angular) { | ||
| 2 | + try { | ||
| 3 | + if (Package['modules-runtime']) { | ||
| 4 | + var require = Package['modules-runtime'].meteorInstall(); | ||
| 5 | + require('angular'); | ||
| 6 | + } | ||
| 7 | + } catch(e) { | ||
| 8 | + throw new Error('angular package is missing'); | ||
| 9 | + } | ||
| 4 | 10 | } | |
| 5 | 11 | ||
| 6 | 12 | angular.module('angular-templates', []).config([ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments