Skip to content

Commit 67fc870

Browse files
committed
A few small tweaks
- added generated files to .gitignore - added barrel file to _helpers - removed ROUTER_DIRECTIVES from home component as no longer needed in RC5
1 parent eace794 commit 67fc870

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,14 @@ build/Release
2929
# Dependency directories
3030
node_modules
3131
jspm_packages
32+
typings
3233

3334
# Optional npm cache directory
3435
.npm
3536

3637
# Optional REPL history
3738
.node_repl_history
39+
40+
# Generated files
41+
app/**/*.js
42+
app/**/*.js.map

app/_helpers/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './fake-backend';

app/app.module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { FormsModule } from '@angular/forms';
44
import { HttpModule } from '@angular/http';
55

66
// used to create fake backend
7-
import { fakeBackendProvider } from './_helpers/fake-backend';
7+
import { fakeBackendProvider } from './_helpers/index';
88
import { MockBackend, MockConnection } from '@angular/http/testing';
99
import { BaseRequestOptions } from '@angular/http';
1010

app/home/home.component.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import { Component, OnInit } from '@angular/core';
2-
import { ROUTER_DIRECTIVES } from '@angular/router';
32

43
import { User } from '../_models/index';
54
import { UserService } from '../_services/index';
65

76
@Component({
87
moduleId: module.id,
9-
templateUrl: 'home.component.html',
10-
directives: [ROUTER_DIRECTIVES],
8+
templateUrl: 'home.component.html'
119
})
1210

1311
export class HomeComponent implements OnInit {

0 commit comments

Comments
 (0)