Using jQuery from Angular 2

At times you may need to use jQuery from Angular 2. Here are a couple of ways to do just that.