Skip to content

Instantly share code, notes, and snippets.

View martine-dowden's full-sized avatar
😀

Martine Dowden martine-dowden

😀
View GitHub Profile
@martine-dowden
martine-dowden / navigate-to-to-or-hash.ts
Last active October 11, 2017 08:30
Angular 4 navigating to top of page or to hash depending on the route
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 {
@martine-dowden
martine-dowden / responsive-table.html
Last active December 15, 2021 14:41
Reponsive Table
<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 / index.html
Created June 23, 2020 20:14
Web Component - Blink
<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>