Add angularjs dependency injection in template