Skip to content

Commit

Permalink
new example script (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
turtledreams authored Nov 22, 2023
1 parent 8541a46 commit dd4abc7
Show file tree
Hide file tree
Showing 45 changed files with 116 additions and 885 deletions.
17 changes: 0 additions & 17 deletions examples/Angular/.browserslistrc

This file was deleted.

16 changes: 0 additions & 16 deletions examples/Angular/.editorconfig

This file was deleted.

45 changes: 0 additions & 45 deletions examples/Angular/.gitignore

This file was deleted.

27 changes: 0 additions & 27 deletions examples/Angular/README.md

This file was deleted.

106 changes: 0 additions & 106 deletions examples/Angular/angular.json

This file was deleted.

4 changes: 4 additions & 0 deletions examples/Angular/countly.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module 'countly-sdk-web';
interface Window {
Countly: any;
}
47 changes: 0 additions & 47 deletions examples/Angular/karma.conf.js

This file was deleted.

12 changes: 12 additions & 0 deletions examples/Angular/src/main.ts → examples/Angular/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,20 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';

import Countly from 'countly-sdk-web';

window.Countly = Countly;

Countly.init({
app_key: "YOUR_APP_KEY",
url: "https://try.count.ly",
debug: true
});
Countly.track_sessions();

if (environment.production) {
enableProdMode();

}

platformBrowserDynamic().bootstrapModule(AppModule)
Expand Down
37 changes: 0 additions & 37 deletions examples/Angular/package.json

This file was deleted.

Empty file.
11 changes: 0 additions & 11 deletions examples/Angular/src/app/app.component.html

This file was deleted.

31 changes: 0 additions & 31 deletions examples/Angular/src/app/app.component.spec.ts

This file was deleted.

10 changes: 0 additions & 10 deletions examples/Angular/src/app/app.component.ts

This file was deleted.

Loading

0 comments on commit dd4abc7

Please sign in to comment.