Skip to content

Instantly share code, notes, and snippets.

@xmeng1
Created February 23, 2017 10:49
Show Gist options
  • Save xmeng1/c98cb0f540a1d51b423118a267e805b8 to your computer and use it in GitHub Desktop.
Save xmeng1/c98cb0f540a1d51b423118a267e805b8 to your computer and use it in GitHub Desktop.
dynamicl_control_DOM_by_event According to debug find that we can get the element by click event and so on.
setCssDynamical($event) {
console.log($event);
$event.source.trigger.nativeElement.childNodes[0].setAttribute("style", "font-size: 20px;font-weight: bold")
//mat-select-trigger
//mat-select-placeholder
//let elt = document.getElementsByClassName("mat-select-placeholder").item(0);
//elt.setAttribute("style", "font-size: 20px;font-weight: bold");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment