Skip to content

Commit

Permalink
feat: meteor 1.3 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Kisiela committed Mar 21, 2016
1 parent 3cb9ee5 commit 39cc970
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
16 changes: 8 additions & 8 deletions packages/angular-templates/package.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
Package.describe({
name: "angular-templates",
summary: "Compile angular templates into the template cache",
version: "1.0.0",
git: "https://github.com/Urigo/angular-meteor.git",
name: 'angular-templates',
summary: 'Compile angular templates into the template cache',
version: '1.0.0',
git: 'https://github.com/Urigo/angular-meteor.git',
documentation: null
});

Package.registerBuildPlugin({
name: "compileNGTemplate",
name: 'compileNGTemplate',
sources: [
"plugin/ng-caching-html-compiler.js",
"plugin/ng-html-scanner.js",
"plugin/ng-template-compiler.js"
'plugin/ng-caching-html-compiler.js',
'plugin/ng-html-scanner.js',
'plugin/ng-template-compiler.js'
],
use: [
'[email protected]',
Expand Down
12 changes: 9 additions & 3 deletions packages/angular-templates/templates-handler.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
if (Package['modules-runtime']) {
var require = Package['modules-runtime'].meteorInstall();
require('angular');
if (!window.angular) {
try {
if (Package['modules-runtime']) {
var require = Package['modules-runtime'].meteorInstall();
require('angular');
}
} catch(e) {
throw new Error('angular package is missing');
}
}

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

0 comments on commit 39cc970

Please sign in to comment.