Skip to content

Commit b54869e

Browse files
crisbetojelbourn
authored andcommittedDec 22, 2016
fix: errors in plunkr template (#54)
* fix: errors in plunkr template * Fixes errors in the Plunkr template due to outdated Material version. * Updates the outdated theme link. * Disables the opening of the Plunk in a new tab, because it gets blocked by the browser as a popup. This is based on the Plunkr from our issue template. * Fix a test. * Switch to version from NPM and fix test again. * Fix wrong link. * Switch to https links. * Revert the target="_blank".
1 parent 29a9461 commit b54869e

File tree

2 files changed

+14
-27
lines changed

2 files changed

+14
-27
lines changed
 

‎material.angular.io/src/assets/plunker/index.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@
2424

2525
<!-- Load the Angular Material 2 stylesheet -->
2626
<link href="https://unpkg.com/@angular/material/core/theming/prebuilt/indigo-pink.css" rel="stylesheet">
27-
2827
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
29-
28+
<style>body { font-family: Roboto,"Helvetica Neue",sans-serif; }</style>
3029
</head>
3130

3231
<body>
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
11
/** Add Transpiler for Typescript */
2-
System.config({
3-
transpiler: 'typescript',
4-
typescriptOptions: {
5-
emitDecoratorMetadata: true
6-
},
7-
packages: {
8-
'.': {
9-
defaultExtension: 'ts'
10-
}
11-
}
12-
});
13-
/** Add Transpiler for Typescript */
142
System.config({
153
transpiler: 'typescript',
164
typescriptOptions: {
@@ -28,24 +16,24 @@ System.config({
2816

2917
System.config({
3018
map: {
31-
'rxjs': 'vendor/rxjs',
3219
'main': 'main.js',
20+
3321
// Angular specific mappings.
34-
'@angular/core': 'vendor/@angular/core/bundles/core.umd.js',
35-
'@angular/common': 'vendor/@angular/common/bundles/common.umd.js',
36-
'@angular/compiler': 'vendor/@angular/compiler/bundles/compiler.umd.js',
37-
'@angular/http': 'vendor/@angular/http/bundles/http.umd.js',
38-
'@angular/forms': 'vendor/@angular/forms/bundles/forms.umd.js',
39-
'@angular/router': 'vendor/@angular/router/bundles/router.umd.js',
40-
'@angular/platform-browser': 'vendor/@angular/platform-browser/bundles/platform-browser.umd.js',
41-
'@angular/platform-browser-dynamic': 'vendor/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
22+
'@angular/core': 'https://unpkg.com/@angular/core/bundles/core.umd.js',
23+
'@angular/common': 'https://unpkg.com/@angular/common/bundles/common.umd.js',
24+
'@angular/compiler': 'https://unpkg.com/@angular/compiler/bundles/compiler.umd.js',
25+
'@angular/http': 'https://unpkg.com/@angular/http/bundles/http.umd.js',
26+
'@angular/forms': 'https://unpkg.com/@angular/forms/bundles/forms.umd.js',
27+
'@angular/router': 'https://unpkg.com/@angular/router/bundles/router.umd.js',
28+
'@angular/platform-browser': 'https://unpkg.com/@angular/platform-browser/bundles/platform-browser.umd.js',
29+
'@angular/platform-browser-dynamic': 'https://unpkg.com/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
30+
'@angular/material': 'https://unpkg.com/@angular/material/material.umd.js',
31+
32+
// Rxjs mapping
33+
'rxjs': 'https://unpkg.com/rxjs',
4234
},
4335
packages: {
4436
// Thirdparty barrels.
4537
'rxjs': { main: 'index' },
46-
'@angular/material': {
47-
format: 'cjs',
48-
main: 'material.umd.js'
49-
}
5038
}
5139
});

0 commit comments

Comments
 (0)
Please sign in to comment.