-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: v7 Merge pull request #292 from angulartics/next
BREAKING CHANGE: requires angular 6. BREAKING CHANGE: providers will no longer start tracking events by default. a call to startTracking() will be necessary to maintain functionality BREAKING CHANGE: no longer requires passing of providers to Angulartics2Module.forRoot shoutout to @rossedfort closes #282
- Loading branch information
Showing
64 changed files
with
4,928 additions
and
3,289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,7 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
const importModule = `import { Angulartics2Module } from 'angulartics2'; | ||
import { Angulartics2GoogleAnalytics } from 'angulartics2/ga'; | ||
@NgModule({ | ||
imports: [ | ||
// added to imports | ||
Angulartics2Module.forRoot([Angulartics2GoogleAnalytics]), | ||
], | ||
}) | ||
`; | ||
|
||
const importComponent = `import { Angulartics2GoogleAnalytics } from 'angulartics2/ga'; | ||
@Component({ | ||
selector: 'app', | ||
template: \`your template\` | ||
}) | ||
export class AppComponent { | ||
// initializes the service and starts event subscriptions | ||
constructor(googleAnalytics: Angulartics2GoogleAnalytics) {} | ||
} | ||
`; | ||
|
||
@Component({ | ||
selector: 'app-root', | ||
templateUrl: './app.component.html', | ||
}) | ||
export class AppComponent { | ||
importModule = importModule; | ||
importComponent = importComponent; | ||
} | ||
export class AppComponent {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.