rewiring basic angular app structure