Skip to content

Instantly share code, notes, and snippets.

Avatar
😀

Martine Dowden martine-dowden

😀
View GitHub Profile
@martine-dowden
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">
<ul>
<li>Sam I am</li>
<li>Green Eggs And Ham</li>
</ul>
</div>
</app-blink>
View responsive-table.html
<html>
<head>
<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">
<style>
@martine-dowden
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';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent implements AfterContentChecked, OnDestroy {