angular-component
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -1,2 +0,2 @@ | ||
/*! angular-component v0.0.2 | (c) 2016 @toddmotto | https://github.com/toddmotto/angular-component */ | ||
/*! angular-component v0.0.3 | (c) 2016 @toddmotto | https://github.com/toddmotto/angular-component */ | ||
(function () { | ||
@@ -47,3 +47,3 @@ | ||
transclude: options.transclude === undefined ? true : options.transclude, | ||
scope: {}, | ||
scope: options.bindings || {}, | ||
bindToController: !!options.bindings, | ||
@@ -50,0 +50,0 @@ restrict: options.restrict || 'E' |
@@ -1,2 +0,2 @@ | ||
/*! angular-component v0.0.2 | (c) 2016 @toddmotto | https://github.com/toddmotto/angular-component */ | ||
!function(){function t(t,n){if(n&&"string"==typeof n)return n;if("string"==typeof t){var e=/^(\S+)(\s+as\s+(\w+))?$/.exec(t);if(e)return e[3]}}function n(){function n(n,e){function o(n){function r(t){return angular.isFunction(t)?function(e,r){return n.invoke(t,this,{$element:e,$attrs:r})}:t}return{controller:e.controller||angular.noop,controllerAs:t(e.controller)||e.controllerAs||"$ctrl",template:r(e.template||e.templateUrl?e.template:""),templateUrl:r(e.templateUrl),transclude:void 0===e.transclude?!0:e.transclude,scope:{},bindToController:!!e.bindings,restrict:e.restrict||"E"}}return e.$canActivate&&(o.$canActivate=e.$canActivate),e.$routeConfig&&(o.$routeConfig=e.$routeConfig),o.$inject=["$injector"],r.directive(n,o)}var r=e.apply(this,arguments);return r.component?r:(r.component=n,r)}var e=angular.module;angular.module=n}(); | ||
/*! angular-component v0.0.3 | (c) 2016 @toddmotto | https://github.com/toddmotto/angular-component */ | ||
!function(){function t(t,n){if(n&&"string"==typeof n)return n;if("string"==typeof t){var e=/^(\S+)(\s+as\s+(\w+))?$/.exec(t);if(e)return e[3]}}function n(){function n(n,e){function o(n){function r(t){return angular.isFunction(t)?function(e,r){return n.invoke(t,this,{$element:e,$attrs:r})}:t}return{controller:e.controller||angular.noop,controllerAs:t(e.controller)||e.controllerAs||"$ctrl",template:r(e.template||e.templateUrl?e.template:""),templateUrl:r(e.templateUrl),transclude:void 0===e.transclude?!0:e.transclude,scope:e.bindings||{},bindToController:!!e.bindings,restrict:e.restrict||"E"}}return e.$canActivate&&(o.$canActivate=e.$canActivate),e.$routeConfig&&(o.$routeConfig=e.$routeConfig),o.$inject=["$injector"],r.directive(n,o)}var r=e.apply(this,arguments);return r.component?r:(r.component=n,r)}var e=angular.module;angular.module=n}(); |
{ | ||
"name": "angular-component", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"main": "./dist/angular-component.min.js", | ||
@@ -5,0 +5,0 @@ "description": "Add .component() support for Angular 1.2+", |
@@ -84,2 +84,4 @@ # angular-component.js | ||
- 0.0.3 | ||
- Fix bug caused by bugfix (aligns with new 1.5 changes) | ||
- 0.0.2 | ||
@@ -86,0 +88,0 @@ - Bugfix isolate scope when `bindings` is omitted, short-circuit if .component() is already supported |
@@ -46,3 +46,3 @@ (function () { | ||
transclude: options.transclude === undefined ? true : options.transclude, | ||
scope: {}, | ||
scope: options.bindings || {}, | ||
bindToController: !!options.bindings, | ||
@@ -49,0 +49,0 @@ restrict: options.restrict || 'E' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11389
90