okfn-brasil / mosaico

Visualization on the brazilian budget for FGV
GNU Affero General Public License v3.0
5 stars 0 forks source link

Links on the breadcrumb aren't updating when the year changes #37

Closed vitorbaptista closed 10 years ago

vitorbaptista commented 10 years ago

Steps to reproduce:

  1. Go to a link where you can see the breadcrumb (i.e. http://weiss-staging.herokuapp.com/#/treemap/2013/9-previdencia-social/271-previdencia-basica)
  2. Check that the breadcrumbs link to the current year (i.e. 2013)
  3. Change year to 2012
  4. Note that the breadcrumbs still link to the previous year (2013)

The problem is that we're getting the params from $state.params, which is updated after we update the breadcrumbs. Before it gets the new value, we already created the links.