Skip to content

Commit 39cc970

Browse files
author
Kamil Kisiela
committed
feat: meteor 1.3 compatible
1 parent 3cb9ee5 commit 39cc970

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

packages/angular-templates/package.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
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',
66
documentation: null
77
});
88

99
Package.registerBuildPlugin({
10-
name: "compileNGTemplate",
10+
name: 'compileNGTemplate',
1111
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'
1515
],
1616
use: [
1717
'caching-html-compiler@1.0.2',

packages/angular-templates/templates-handler.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff 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+
}
410
}
511

612
angular.module('angular-templates', []).config([

0 commit comments

Comments
 (0)