upgrade angularApp to optimized generator