Skip to content

v0.7.0

Compare
Choose a tag to compare
@robisim74 robisim74 released this 10 May 11:24
· 661 commits to master since this release

Features

  • Now the library uses pure pipes. To know the advantages over impure pipes, please see here.

BREAKING CHANGES

The use of pure pipes requires many changes:

  • For example, to get the translation use in the view:
{{ 'TITLE' | translate:lang }}

and in the component extend Locale superclass:

import {Locale, LocalizationService} from 'angular2localization/angular2localization';
...
export class AppComponent extends Locale {

    constructor(public localization: LocalizationService) {
        super(null, localization);
        ...
    }

} 
  • Call updateTranslation method of LocalizationService after the initialization and after each change of language.
  • AsyncRoute is no longer supported.

Please read carefully the README or see the sample app.