src-zone/material

angulartics2 versions available: 4.0.0

Dependencies opened this issue · 0 comments

There are new versions of angulartics2 available from npm.

4.0.0

4.0.0 (2017-11-09)

New Features:

  • Bundle size reduction, in most cases more than 80%
    • rxjs lettable operators
    • splitting providers into separate imports since code shaking / dead code removal doesn't yet work effectively on unused classes.
  • support for Angular v5 (not required)
  • new project landing page https://angulartics.github.io/angulartics2/
  • typescript definitions for all settings
  • added angularticsLabel and angularticsValue shortcuts to angulartics2On directive
  • clicky.com provider #172
  • pass settings to Angulartics2Module.forRoot as a second parameter
// shown passing settings on init
Angulartics2Module.forRoot([Angulartics2GoogleAnalytics], {
  developerMode: true,
  pageTracking: {
    clearIds: true,
  },
});

Breaking Changes:

  • rxjs v5.5.0 minimum required
  • angulartics2On renamed input angularticsEvent to angularticsAction
  • removed empty Angulartics2Module.forChild. Use Angulartics2Module instead.
  • Imports have changed for all providers

Before

import { Angulartics2, Angulartics2GoogleAnalytics } from 'angulartics2';

After

import { Angulartics2 } from 'angulartics2';
import { Angulartics2GoogleAnalytics } from 'angulartics2/ga';