Created
February 22, 2017 11:24
-
-
Save fxck/86dedc0b34027753c687039b302b33bd to your computer and use it in GitHub Desktop.
Angular Material Plunker Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>normalizr playgr</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/typescript/2.1.1/typescript.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/core-js/2.4.1/core.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.41/system.js"></script> | |
<!-- Configure SystemJS --> | |
<script src="systemjs.config.js"></script> | |
<script> | |
System | |
.import('main.ts') | |
.catch(console.error.bind(console)); | |
</script> | |
</head> | |
<body> | |
</body> | |
</html> | |
<!-- | |
Copyright 2016 Google Inc. All Rights Reserved. | |
Use of this source code is governed by an MIT-style license that | |
can be found in the LICENSE file at http://angular.io/license | |
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { schema } from 'normalizr'; | |
console.log(schema); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Add Transpiler for Typescript */ | |
System.config({ | |
transpiler: 'typescript', | |
typescriptOptions: { | |
emitDecoratorMetadata: true | |
}, | |
packages: { | |
'.': { | |
defaultExtension: 'ts' | |
}, | |
'vendor': { | |
defaultExtension: 'js' | |
} | |
} | |
}); | |
System.config({ | |
map: { | |
'main': 'main.js', | |
// Angular specific mappings. | |
'normalizr': 'https://unpkg.com/normalizr', | |
} | |
}); | |
/* | |
Copyright 2016 Google Inc. All Rights Reserved. | |
Use of this source code is governed by an MIT-style license that | |
can be found in the LICENSE file at http://angular.io/license | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment