Here is another solution: https://github.com/ithkuil/angular-on-server
wiki for details
Update from author of that repo: that was about 6 years ago (at the time of this edit). At this point, people should probably be using https://angular.io/guide/universal or just https://prerender.io/