Javascript Angular 2 Bootstrap Function Gives Error

Javascript Angular 2 Bootstrap Function Gives Error