Skip to content

Commit ea9206d

Browse files
author
Matt Lewis
committed
feat: upgrade to angular 5
BREAKING CHANGE: angular 5 or higher is now required to use this package
1 parent 6591225 commit ea9206d

10 files changed

+76
-357
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ https://mattlewis92.github.io/angular-gauge/
2020

2121
## About
2222

23-
A tiny angular 4.0+ wrapper for https://github.com/naikus/svg-gauge
23+
A tiny angular 5.0+ wrapper for https://github.com/naikus/svg-gauge
2424

2525
## Installation
2626

demo/demo.component.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Component, ViewEncapsulation, OnInit, OnDestroy } from '@angular/core';
44
selector: 'mwl-demo-app',
55
encapsulation: ViewEncapsulation.None,
66
template: `
7-
7+
88
<div class="gauges-container">
99
1010
<mwl-gauge
@@ -66,7 +66,7 @@ import { Component, ViewEncapsulation, OnInit, OnDestroy } from '@angular/core';
6666
[animated]="true"
6767
[animationDuration]="1">
6868
</mwl-gauge>
69-
69+
7070
</div>
7171
7272
`,
@@ -76,7 +76,7 @@ import { Component, ViewEncapsulation, OnInit, OnDestroy } from '@angular/core';
7676
color: #999;
7777
font-family: Hevletica, sans-serif;
7878
}
79-
79+
8080
.gauges-container {
8181
display: flex;
8282
}
@@ -106,7 +106,7 @@ import { Component, ViewEncapsulation, OnInit, OnDestroy } from '@angular/core';
106106
font-weight: bold;
107107
font-size: 8em;
108108
}
109-
109+
110110
/* ------- Alternate Style ------- */
111111
mwl-gauge.two {
112112
}
@@ -137,7 +137,7 @@ import { Component, ViewEncapsulation, OnInit, OnDestroy } from '@angular/core';
137137
mwl-gauge.three > .gauge > .value-text {
138138
fill: #C9DE3C;
139139
}
140-
140+
141141
/* ----- Alternate Style ----- */
142142
mwl-gauge.four > .gauge > .dial {
143143
stroke: #334455;
@@ -166,7 +166,7 @@ import { Component, ViewEncapsulation, OnInit, OnDestroy } from '@angular/core';
166166
fill: #F8774B;
167167
font-size: 7em;
168168
}
169-
169+
170170
/* ----- Alternate Style ----- */
171171
mwl-gauge.six > .gauge > .dial {
172172
stroke: #334455;

karma.conf.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default config => {
5858
}
5959
}),
6060
new webpack.ContextReplacementPlugin(
61-
/angular(\\|\/)core(\\|\/)@angular/,
61+
/angular(\\|\/)core(\\|\/)esm5/,
6262
path.join(__dirname, 'src')
6363
),
6464
...(config.singleRun ? [new webpack.NoEmitOnErrorsPlugin()] : [])

0 commit comments

Comments
 (0)