File tree Expand file tree Collapse file tree 2 files changed +17
-11
lines changed
packages/angular-templates Expand file tree Collapse file tree 2 files changed +17
-11
lines changed Original file line number Diff line number Diff line change 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
- 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 ( [
You can’t perform that action at this time.
0 commit comments