mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-26 11:12:19 +08:00
Angulartics Settings Provider
Add setting which can be set directly through provider. Use case: you want to strip off the slash in the basePath -- using the settings in the provider allows you to modify the basePath as you like.
This commit is contained in:
@@ -20,6 +20,8 @@ module Analytics {
|
||||
$analyticsProvider.registerPageTrack((path: string, locationObj: ng.ILocationService) => {
|
||||
console.log("viewed " + path);
|
||||
});
|
||||
|
||||
$analyticsProvider.settings.pageTracking.basePath = "/my/base/path";
|
||||
}]);
|
||||
}
|
||||
|
||||
|
||||
Vendored
+10
@@ -33,6 +33,16 @@ declare module Angulartics {
|
||||
registerSetUsername(callback: (username: string) => any): void
|
||||
registerSetUserProperties(callback: (userProperties: any) => any): void
|
||||
registerSetSuperProperties(callback: (superProperties: any) => any): void
|
||||
|
||||
settings: {
|
||||
pageTracking: {
|
||||
autoTrackingVirtualPages: boolean,
|
||||
autoTrackingFirstPage: boolean,
|
||||
basePath: string,
|
||||
autoBasePath: boolean
|
||||
},
|
||||
developerMode: boolean
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user