title: Converting AngularJS to Angular 6
body: <p>I'm fairly new to Angular and have no experience with AngularJS; however I found this codepen that I want to duplicate: <a href="https://codepen.io/anon/pen/jpZBBQ?editors=0010" rel="nofollow noreferrer">https://codepen.io/anon/pen/jpZBBQ?editors=0010</a>  </p>
  
  <p>Ive fixed the ng-class and ng-click directives in the template but I am stuck on the js; I've never seen a controller, <code>$scope</code>, or <code>$timeout</code> in an Angular 6 app so I'm not sure what to do with that. Any help is appreciated.</p>