Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Quality] Remove deprecation import #88

Merged
merged 2 commits into from
May 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,16 +174,16 @@ Enable automatic page view tracking by adding following configuration:
<!-- prettier-ignore -->
```ts
import {
NgxMatomoModule,
NgxMatomoRouterModule
MatomoModule,
MatomoRouterModule
} from 'ngx-matomo-client';

@NgModule({
imports: [
NgxMatomoModule.forRoot({
MatomoModule.forRoot({
// Your configuration
}),
NgxMatomoRouterModule,
MatomoRouterModule,
],
})
export class AppModule {
Expand Down Expand Up @@ -288,17 +288,17 @@ const routes: Routes = [
<!-- prettier-ignore -->
```ts
import {
NgxMatomoModule,
NgxMatomoRouterModule,
MatomoModule,
MatomoRouterModule,
MatomoRouteDataInterceptor,
} from 'ngx-matomo-client';

@NgModule({
imports: [
NgxMatomoModule.forRoot({
MatomoModule.forRoot({
// Your configuration
}),
NgxMatomoRouterModule.forRoot({
MatomoRouterModule.forRoot({
interceptors: [MatomoRouteDataInterceptor],
}),
],
Expand Down Expand Up @@ -387,17 +387,17 @@ And provide it in your application:
<!-- prettier-ignore -->
```ts
import {
NgxMatomoModule,
NgxMatomoRouterModule,
MatomoModule,
MatomoRouterModule,
MatomoRouteDataInterceptor,
} from 'ngx-matomo-client';

@NgModule({
imports: [
NgxMatomoModule.forRoot({
MatomoModule.forRoot({
// Your configuration
}),
NgxMatomoRouterModule.forRoot({
MatomoRouterModule.forRoot({
// Add interceptors here:
interceptors: [
MySimpleInterceptor,
Expand Down Expand Up @@ -728,10 +728,10 @@ the `exclude` option of router configuration:
```ts
@NgModule({
imports: [
NgxMatomoModule.forRoot({
MatomoModule.forRoot({
/* ... */
}),
NgxMatomoRouterModule.forRoot({
MatomoRouterModule.forRoot({
exclude: [/some-pattern$/],
}),
],
Expand Down Expand Up @@ -803,7 +803,7 @@ import {

@NgModule({
imports: [
NgxMatomoModule.forRoot({
MatomoModule.forRoot({
/* ... */
}),
],
Expand Down Expand Up @@ -859,7 +859,7 @@ Your configuration may look like that:
```ts
@NgModule({
imports: [
NgxMatomoModule({
MatomoModule({
/* ... */
scriptUrl: 'YOUR_MATOMO_SCRIPT_URL', // your Matomo's script url
}),
Expand All @@ -876,7 +876,7 @@ to `AUTO_DEFERRED` and manually call `MatomoInitializerService.initializeTracker
```ts
@NgModule({
imports: [
NgxMatomoModule.forRoot({
MatomoModule.forRoot({
/* ... */
mode: MatomoInitializationMode.AUTO_DEFERRED,
}),
Expand Down
Loading