Skip to content

Instantly share code, notes, and snippets.


Martine Dowden martine-dowden

View GitHub Profile
martine-dowden / index.html
Created Jun 23, 2020
Web Component - Blink
View index.html
<h1>Blink Tag Demo</h1>
<app-blink title="Blink me">
<div slot="stuff">
<li>Sam I am</li>
<li>Green Eggs And Ham</li>
View responsive-table.html
<title>Responsive Table</title>
<meta charset="UTF-8">
<meta name="description" content="How to create a responsive table">
<meta name="keywords" content="HTML,CSS">
<meta name="author" content="Martine Dowden">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
martine-dowden / navigate-to-to-or-hash.ts
Last active Oct 11, 2017
Angular 4 navigating to top of page or to hash depending on the route
View navigate-to-to-or-hash.ts
import { Component, AfterContentChecked, OnDestroy } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
export class AppComponent implements AfterContentChecked, OnDestroy {