homerjam / angular-gsapify-router

Angular UI-Router animation directive allowing configuration of GSAP state transitions based on priority
http://homerjam.github.io/angular-gsapify-router/
MIT License
85 stars 16 forks source link

Added default value for $state.previous #11

Closed lnr0626 closed 9 years ago

lnr0626 commented 9 years ago

This fixes the 'cannot read property data on undefined' issues on the first attempted state change. The root of the issue was the $state.previous didn't have an initial value, so was undefined.

homerjam commented 9 years ago

Awesome. Thanks!