Skip to content

Instantly share code, notes, and snippets.


kuba holak khola

Block or report user

Report or block khola

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View message.component.ts
import { Component, OnInit, ViewEncapsulation, Input, HostListener, EventEmitter, Output } from "@angular/core";
selector: "custom-message",
template: `
<p [class]="type">
styles: [
View basic-component.html
<template id="my-custom-component">
<script type="text/javascript">
class MyCustomComponent extends HTMLElement {
constructor() {
const template = document.getElementById('my-custom-component');
const templateContent = template.content;
View stencil-example-component.tsx
import { Component, Prop, State } from '@stencil/core';
tag: 'my-custom-button',
styleUrl: 'my-custom-button.scss'
export class MyCustomButtonComponent {
@Prop() myCustomAttribute: string;
@State() checked: boolean;
You can’t perform that action at this time.