Skip to content

Commit

Permalink
Clean-up via tslint
Browse files Browse the repository at this point in the history
  • Loading branch information
czeckd committed Apr 9, 2016
1 parent e2df2c2 commit 08da5b4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
8 changes: 3 additions & 5 deletions app/demo-app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {SvgIconComponent} from './svg-icon.component';

@Component({
selector: 'demo-app',
directives: [ SvgIconComponent ],
directives: [ NgStyle, SvgIconComponent ],
template: `
<div style="margin:15px;">
<div style="width:500px;">
Expand Down Expand Up @@ -36,12 +36,10 @@ import {SvgIconComponent} from './svg-icon.component';
&nbsp;&nbsp;&nbsp;&lt;svg-icon src="images/eye.svg"&gt;&lt;/svg-icon&gt;<br/>
&lt;/div&gt;
</tt>
</div>
`
</div>`
})

export class DemoAppComponent {
export class DemoAppComponent {
private r:number = 120;
private g:number = 120;
private b:number = 120;
Expand Down
5 changes: 2 additions & 3 deletions app/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import {bootstrap} from 'angular2/platform/browser'
import {bootstrap} from 'angular2/platform/browser';
import {HTTP_PROVIDERS} from 'angular2/http';
import 'rxjs/add/operator/map';


import {DemoAppComponent} from './demo-app.component'
import {DemoAppComponent} from './demo-app.component';

bootstrap(DemoAppComponent, [ HTTP_PROVIDERS ]);
4 changes: 2 additions & 2 deletions app/svg-icon.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export class SvgIconComponent implements OnInit {
this.http.get( this.src )
.map( (res: Response) => res.text() )
.subscribe(
data => { this.iconData = data },
err => { console.error(err) }
data => { this.iconData = data; },
err => { console.error(err); }
);
}

Expand Down

0 comments on commit 08da5b4

Please sign in to comment.