diff --git a/CHANGELOG.md b/CHANGELOG.md index 59474ce..4e288ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Last Changes +- [#22](https://github.com/LaxarJS/laxar-angular-adapter/issues/22): removed AngularJS specific `axI18n` injection in favor of widget-services version - [#21](https://github.com/LaxarJS/laxar-angular-adapter/issues/21): fixed bower.json `main` entry - [#20](https://github.com/LaxarJS/laxar-angular-adapter/issues/20): patched window.Promise to integrate with $q - [#19](https://github.com/LaxarJS/laxar-angular-adapter/issues/19): removed applyViewChanges in favor of a heartbeat listener diff --git a/README.md b/README.md index c38682c..30a9844 100644 --- a/README.md +++ b/README.md @@ -21,13 +21,12 @@ The following list covers these: * [`axGlobalLog`](http://laxarjs.org/docs/laxar-v2-latest/manuals/widget_services#-axgloballog-) * [`axGlobalStorage`](http://laxarjs.org/docs/laxar-v2-latest/manuals/widget_services#-axglobalstorage-) * [`axHeartbeat`](http://laxarjs.org/docs/laxar-v2-latest/manuals/widget_services#-axheartbeat-) -* [`axI18n`](http://laxarjs.org/docs/laxar-v2-latest/manuals/widget_services#-axi18n-) * [`axTooling`](http://laxarjs.org/docs/laxar-v2-latest/manuals/widget_services#-axtooling-) ### axWidgetServices -Additionally an `axWidgetServices` service is available, which can be used by directives to gain access to services that are only available in the context of a specific widget, such as [`axFeatures`](http://laxarjs.org/docs/laxar-v2-latest/manuals/widget_services#-axfeatures-) or the decorated log for widgets ([`axLog`](http://laxarjs.org/docs/laxar-v2-latest/manuals/widget_services#-axlog-)). +Additionally an `axWidgetServices` service is available, which can be used by directives to gain access to services that are only available in the context of a specific widget, such as [`axFeatures`](http://laxarjs.org/docs/laxar-v2-latest/manuals/widget_services#-axfeatures-), [`axI18n`](http://laxarjs.org/docs/laxar-v2-latest/manuals/widget_services#-axi18n-) or the decorated log for widgets ([`axLog`](http://laxarjs.org/docs/laxar-v2-latest/manuals/widget_services#-axlog-)). The `axWidgetServices` is a function, that must be called with scope of the directive and it returns the map of services that are available for the widget being the same as or a parent of the directive scope in the scope hierarchy. As a consequence an error is thrown if this service is used with a scope not being (a child of) a widget scope. diff --git a/laxar-angular-adapter.js b/laxar-angular-adapter.js index 47092c4..bd11a3f 100644 --- a/laxar-angular-adapter.js +++ b/laxar-angular-adapter.js @@ -184,7 +184,6 @@ export function bootstrap( modules, laxarServices ) { .factory( 'axGlobalLog', () => laxarServices.log ) .factory( 'axGlobalStorage', () => laxarServices.storage ) .factory( 'axHeartbeat', () => laxarServices.heartbeat ) - .factory( 'axI18n', () => laxarServices.i18n ) .factory( 'axTooling', () => laxarServices.toolingProviders ) .factory( 'axWidgetServices', () => createWidgetServiceProvider() ); }