Angular and Pulse

Marcin Zajkowski

Posted on
Nov 11 2015

What is the best way to use Pulse with Angular?

I am not using html5mode=true and my URL's resolve to:

http://baseUrl.com/#/angular/router/handledpath

Jamie Penney

Posted on
Nov 20 2015

Hey Marcin,

Pulse doesn't currently support single page apps as well as it could - we are working on an update for this though, should be out in the next few weeks. We'll let you know when it's ready!

Cheers,
Jamie


craig

Posted on
Jan 06 2016

any update on when better single page app support is coming?


Zheng Li

Raygun

Posted on
Jan 06 2016

Hi Craig,

We released the single page app support for Pulse in December, here are the details: https://raygun.io/blog/2015/12/announcing-pulse-single-page-app-beta-support/

Cheers,

Zheng


Callum

Posted on
Jan 06 2016

Hi Craig,

Just a clarification on this, after feedback from the beta we've been working on polishing the implementation which involves API changes to the provider; this work should be completed in the near term at which point full SPA support will be made available. We will update you here and via the blog when this is complete.

Regards,

Callum Gavin
Raygun Limited


Marcin Zajkowski

Posted on
Jan 06 2016

I think this feature would help us assess performance in our SPA with regards to how fast route changes occur.

Right now when a route change happens several resolutions occur during the process.

What we could do is track $routeChangeStart and listen for any simultaneous http calls that occur, then listen for $routeChangeSuccess to finish the transaction.

These calls usually include any AJAX derived dependencies, and just as importantly, any templates that need to be loaded in, which fire off immediately on route request.

Creating something along the lines of start, progress, end event model which binds to a route path or route key would be magic stuff.


Reply