before apply angular js