Skip to content

Instantly share code, notes, and snippets.

View rossedfort's full-sized avatar

Ross Edfort rossedfort

View GitHub Profile

Hello!

this note was writen with the bartleby app

you should totally check it out

nyancat


Hello!

this note was writen with the bartleby app

you should totally check it out

nyancat


Step 1: Open your TypeScript user defined snippets: Code > Preferences > User Snippets > (select TypeScript)

Step 2: Paste this block of JSON between the 2 brackets that are already there. Make sure it's not in the commented out text.

	"Start a test 'it' block for a component": {
		"prefix": "itc",
		"body": [
			"it('Should $1',",
 " inject([${2:component}], (component: ${2:component}) => {",
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="icon" href="favicon.png">
<title>ngworld</title>
<script src="./src/aframe-master.js"></script>
<script src="./src/aframe-extras.min.js"></script>