set up angular and index