Hello i want to make a button that mutes and unmutes sound in html5 <video> tag. Here what i have so far. Sadly it doesnt work .ts soundOnOff() { let audio = document.getElementById('muteSound') as HTMLMediaElement audio.muted = true; } html <button onclick="enableMute()" type="button">Mute sound</button> <video id="muteSound" muted="true" playsinline autoplay loop preload="auto"> <source src="assets/videos/louvre.mp4" type="video/mp4" > </video>

Member Avatar
Member Avatar
+0 forum 2

I am implementing **Attribute Based Access Control** in angular typescript application with rails server. I've searched for different solutions like followings but could not manage to implement cause of unclear solutions. 1. [Custom Roles Based Access Control RBAC in ASP NET](https://www.codeproject.com/Articles/875547/Custom-Roles-Based-Access-Control-RBAC-in-ASP-NET) 2. [simple attribute based access control with spring](https://dzone.com/articles/simple-attribute-based-access-control-with-spring) The solution points to create a method for checking objects and its permissions list like this public boolean check(Object subject, Object resource, Object action, Object environment) 1. Subject is the entity (mostly a user) that requests access 2. Resource is the entity to be accessed (e.g. file, database record, Store Information, …

Member Avatar
Member Avatar
+0 forum 5

I am trying to add custom button in CKEditor. I am using this CKEditor [ng2-ckeditor](https://github.com/chymz/ng2-ckeditor). It is working fine. but I want to add a button. on cliking this button will add a rails template tag Example: I can add the button like example below, but I dont know how to write its method. that will inser `<%= sender_name %>` tag on the current position of text in CKEditor. <ckeditor [(ngModel)]="ckeditorContent"> <ckbutton [name]="'saveButton'" [command]="'saveCmd'" (click)="save($event)" [icon]="'save.png'" [label]="'Save Document'" [toolbar]="'clipboard,1'"> </ckbutton> </ckeditor> please help me. how can I do that in angular2 typescript.

Member Avatar
Member Avatar
+0 forum 1

Hi guys, I will soon have a licence to run webstorm on one machine (at work) but I need to think of some other free IDE which supports typescript ideally natively on a different laptop running windows and linux (at home). I had a look around of course, but as I don't have any experience with any of them I thought I'd ask here. For windows I know that there is visual studio core, although I'm not sure that's free. I have eclipse installed already, both on linux and on windows but I've only used it for java, never for …

Member Avatar
Member Avatar
+0 forum 2

The End.