Navigation Menu

Skip to content

Commit

Permalink
feat: upgrade to angular 5
Browse files Browse the repository at this point in the history
BREAKING CHANGE: angular 5 or higher is now required to use this package
  • Loading branch information
Matt Lewis committed Dec 23, 2017
1 parent 6591225 commit ea9206d
Show file tree
Hide file tree
Showing 10 changed files with 76 additions and 357 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -20,7 +20,7 @@ https://mattlewis92.github.io/angular-gauge/

## About

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

## Installation

Expand Down
12 changes: 6 additions & 6 deletions demo/demo.component.ts
Expand Up @@ -4,7 +4,7 @@ import { Component, ViewEncapsulation, OnInit, OnDestroy } from '@angular/core';
selector: 'mwl-demo-app',
encapsulation: ViewEncapsulation.None,
template: `
<div class="gauges-container">
<mwl-gauge
Expand Down Expand Up @@ -66,7 +66,7 @@ import { Component, ViewEncapsulation, OnInit, OnDestroy } from '@angular/core';
[animated]="true"
[animationDuration]="1">
</mwl-gauge>
</div>
`,
Expand All @@ -76,7 +76,7 @@ import { Component, ViewEncapsulation, OnInit, OnDestroy } from '@angular/core';
color: #999;
font-family: Hevletica, sans-serif;
}
.gauges-container {
display: flex;
}
Expand Down Expand Up @@ -106,7 +106,7 @@ import { Component, ViewEncapsulation, OnInit, OnDestroy } from '@angular/core';
font-weight: bold;
font-size: 8em;
}
/* ------- Alternate Style ------- */
mwl-gauge.two {
}
Expand Down Expand Up @@ -137,7 +137,7 @@ import { Component, ViewEncapsulation, OnInit, OnDestroy } from '@angular/core';
mwl-gauge.three > .gauge > .value-text {
fill: #C9DE3C;
}
/* ----- Alternate Style ----- */
mwl-gauge.four > .gauge > .dial {
stroke: #334455;
Expand Down Expand Up @@ -166,7 +166,7 @@ import { Component, ViewEncapsulation, OnInit, OnDestroy } from '@angular/core';
fill: #F8774B;
font-size: 7em;
}
/* ----- Alternate Style ----- */
mwl-gauge.six > .gauge > .dial {
stroke: #334455;
Expand Down
2 changes: 1 addition & 1 deletion karma.conf.ts
Expand Up @@ -58,7 +58,7 @@ export default config => {
}
}),
new webpack.ContextReplacementPlugin(
/angular(\\|\/)core(\\|\/)@angular/,
/angular(\\|\/)core(\\|\/)esm5/,
path.join(__dirname, 'src')
),
...(config.singleRun ? [new webpack.NoEmitOnErrorsPlugin()] : [])
Expand Down

0 comments on commit ea9206d

Please sign in to comment.