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 11Package . 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
99Package . 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' ,
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+ }
410}
511
612angular . module ( 'angular-templates' , [ ] ) . config ( [
You can’t perform that action at this time.
0 commit comments