Fixed angular module when used into a custom directive. Do not rely on the $$phase variable anymore.
Merge pull request #2463 from gaelduplessix/master

Fixed angular module when used into a custom directive.
Updated version number.
Merge branch 'master' into gh-pages