angulartics2
angulartics2 copied to clipboard
Handle router change on some specific routes
Note: for support questions, please use one of these channels: Chat: Gitter
- I'm submitting a ... [ ] bug report [*] feature request [ ] question about the decisions made in the repository
On some routes I set the page title
and meta description
related on corresponding data which is available after NavigationEnd
event.
It would be great if there was a way to postpone Analytics
request until data fetch completed.
see this: https://github.com/angulartics/angulartics2/issues/112#issuecomment-364231019
@timelf123 The solution is really nice if all title happend to be set by one method, but in my case each page handles it's own way to extract the title correspond to it's data.
For example on page one
it uses data of model A
and set title like this:
A.username - page one's | sitename
and for page two
it uses model B
:
B.title | sitename