I have some project on Angular CLI. So I need to put some scripts to a component but it seems they arent there
my code in the component:
<script src="//vk.com/js/api/openapi.js" type="text/javascript"></script>
<div id="login_button" ></div>
<script language="javascript ">
VK.init({
apiId: 6241489
});
/*function authInfo(response) {
if (response.session) {
alert('user: '+response.session.mid);
} else {
alert('not auth');
}
}
VK.Auth.getLoginStatus(authInfo);*/
VK.UI.button('login_button');
</script>
Who know how to fix it?