angular tab assignment, version 1