These are chat archives for angular/material

10th
Jan 2018
texirv0203
@texirv0203
Jan 10 2018 15:14

hi,


@NgModule({
  imports: [
    BrowserModule,
    AppRoutingModule,
  • I am getting below three errors...
  • can you tell me how to fix it.
  • providing my code snippet in the gist since the code is big

VM17569:34 Unhandled Promise rejection: Bootstrap at least one component before injecting Router. ; Zone: <root> ; Task: Promise.then ; Value: Error: Bootstrap at least one component before injecting Router.
VM17569:34 Error: Uncaught (in promise): Error: Bootstrap at least one component before injecting Router.
Uncaught TypeError: Converting circular structure to JSON

app.routing.ts
https://gist.github.com/texirv0203/aed7ecb44fa37653d7d5e464ce236047

app.module.ts

https://gist.github.com/texirv0203/e27d8bba83d8773e84ea21855a969601

app.component.ts

https://gist.github.com/texirv0203/5a49f608d107003dc8fd73f1650bed60

Relevant code


export class AppRoutingModule {

   vpView: any;

//   // Subscribe to the Router URL changes.
    //@Inject(Service, 'some-token')
  constructor(public appRoutes:Router) {
      console.log("appDyanmics-sample-constructor");
      this.appRoutes.events.subscribe((event:Event) => {
              if (event instanceof NavigationEnd) {
                console.debug('NavigationEnd: '+event.url);

                this.vpView.markViewChangeEnd();
                this.vpView.markViewDOMLoaded();
                this.vpView.markXhrRequestsCompleted();
                this.vpView.markViewResourcesLoaded();
                this.vpView.end();
                ADRUM.Sky(this.vpView);

              } else if (event instanceof NavigationStart) {
                console.debug('NavigationStart: '+event.url);

                this.vpView = new ADRUM.events.VPageView();
                this.vpView.start();
                this.vpView.markViewChangeStart();
              } else {
                  console.log("error here");
              }
          });
  }
}
texirv0203
@texirv0203
Jan 10 2018 16:14
hi,
do you guys know any open source end user web tracking tool
texirv0203
@texirv0203
Jan 10 2018 19:23

hi,
how to pass the custom event in the payload for appdyanmics.
I am using the below example

https://github.com/derrekyoung/appd-sampleapp-angular2