angular2-now
Advanced tools
Comparing version 0.3.8 to 0.3.15
@@ -26,5 +26,6 @@ var angular2now = function () { | ||
var isCordova = typeof cordova !== 'undefined'; | ||
var inj = angular.injector(['ng']); | ||
var $q = inj.get('$q'); | ||
//var $log = inj.get('$log'); | ||
@@ -178,3 +179,3 @@ var currentModule; | ||
controller: target, | ||
replace: false, | ||
replace: options.replace || false, | ||
transclude: /ng-transclude/i.test(options.template) || target.transclude, | ||
@@ -415,3 +416,3 @@ require: options.require || target.require || requiredControllers, | ||
if (!Meteor) var Meteor = {}; | ||
if (Meteor.isCordova) | ||
if (isCordova) | ||
angular.element(document).on("deviceready", onReady); | ||
@@ -462,3 +463,3 @@ else | ||
if (!options || !(options instanceof Object) || options.name === undefined) | ||
throw new Error('@State: Valid options are: name, url, defaultRoute, template, resolve, abstract.'); | ||
throw new Error('@State: Valid options are: name, url, defaultRoute, template, resolve, abstract, data.'); | ||
@@ -557,3 +558,6 @@ return function (target) { | ||
onEnter: options.onEnter, | ||
onExit: options.onExit | ||
onExit: options.onExit, | ||
// Custom data | ||
data: options.data | ||
}; | ||
@@ -560,0 +564,0 @@ |
{ | ||
"name": "angular2-now", | ||
"version": "0.3.4", | ||
"version": "0.3.15", | ||
"authors": [ | ||
@@ -5,0 +5,0 @@ "pbastowski@gmail.com" |
angular2now = this.angular2now | ||
delete this.angular2now; | ||
Package.describe({ | ||
name: 'pbastowski:angular2-now', | ||
version: '0.3.8', | ||
summary: 'Use Angular 2 @Component syntax with Angular 1 and Babel', | ||
version: '0.3.15', | ||
summary: 'Angular 2 @Component syntax for Angular 1', | ||
git: 'https://github.com/pbastowski/angular2-now.git', | ||
@@ -11,6 +11,4 @@ documentation: 'README.md' | ||
api.versionsFrom('1.1.0.2'); | ||
api.use('angular@1.0.0-rc.6', 'client'); | ||
api.use('pbastowski:angular-babel@0.1.9', 'client'); | ||
api.imply('angular@1.0.0-rc.6', 'client'); | ||
api.imply('pbastowski:angular-babel@0.1.9', 'client'); | ||
api.use('angular@1.0.1', 'client'); | ||
api.imply('angular@1.0.1', 'client'); | ||
api.addFiles(['angular2-now.js', 'exports.js'], ['client']); | ||
@@ -17,0 +15,0 @@ api.export(['angular2now']); |
{ | ||
"name": "angular2-now", | ||
"version": "0.3.8", | ||
"version": "0.3.15", | ||
"description": "Angular 2 component syntax for Angular 1 apps", | ||
@@ -5,0 +5,0 @@ "main": "angular2-now.js", |
@@ -254,3 +254,3 @@ ## Angular 2.0 component syntax using Angular 1 and Babel | ||
This allows you to bootstrap your Angular 1 app using the Angular 2 component bootstrap syntax. So, there is no need to use `ng-app`. Using `bootstrap` is the equivalend of the Angular 1 manual bootstrapping method: `angular.bootstrap(DOMelement, ['app'])`. The bootstrap function also knows how to handle Meteor.isCordova apps. | ||
This allows you to bootstrap your Angular 1 app using the Angular 2 component bootstrap syntax. So, there is no need to use `ng-app`. Using `bootstrap` is the equivalend of the Angular 1 manual bootstrapping method: `angular.bootstrap(DOMelement, ['app'])`. The bootstrap function also knows how to handle Cordova apps. | ||
`config` is the same parameter as in angular.bootstrap: https://code.angularjs.org/1.3.15/docs/api/ng/function/angular.bootstrap. It can be used to enforce strictDi, for testing before deployment. | ||
@@ -257,0 +257,0 @@ |
55906
662