angular templates handling