Semantic UI with Angular2 - How to set Sidebar settings from jQuery in a component?
问题 I have an Angular2 application and I want to use Semantic UI . However, there are some jQuery configurations like below that I have to run after a component loaded: $('#app .ui.sidebar') .sidebar({context:$('#app')}) .sidebar('setting', 'transition', 'overlay') It is not working by importing the js file in the head of index.html or writing it in a <script> tag inside of a component template. Is there a " typescript way" to do that or how can I use a js file inside of a component? 回答1: I found