Check $$phase on the root scope
Merge pull request #47 from ohana54/fix-phase-check

Check $$phase on the root scope