WIP: remove ngdefine from base plugin