Practice for angular directive