title: Integrate AngularJs2 app in rails
body: <p>I have created rails app and inside it i created Angualr2 app .. right now i have to start both angular server and rails server ... but i want to show angular2 front end when run <code>rails s</code>. how is this possible.
  what i have try is
  1) run <code>ng build</code> and load all files of dist folder in rails public folder
  2)replace <code>yield</code> with  <code>&lt;app-root&gt;Loading...&lt;/app-root&gt;</code> . if now i run rails s its show me same rails page .. not loading... or app works.
  plz help me how can i integrate Angular2 with rails i am following this <a href="https://blog.angular.work/post/angular-cli-on-rails" rel="nofollow noreferrer">https://blog.angular.work/post/angular-cli-on-rails</a> and this 
  <a href="https://blog.angular.work/post/angular-2-on-rails" rel="nofollow noreferrer">https://blog.angular.work/post/angular-2-on-rails</a>.
  also i am using Angular-cli</p>