plugin structure. initial angular logic