Skip to content

Commit

Permalink
improving project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
techieshravan committed Mar 16, 2016
1 parent 6d15266 commit 695ced6
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
6 changes: 2 additions & 4 deletions ContactsManager/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Component } from 'angular2/core';
import { RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS } from 'angular2/router';
import { CreateContactComponent } from './contacts/create-contact.component';
import { DisplayContactsComponent } from './contacts/display-contacts.component';
import { ContactsService } from './contacts/contacts.service';
import { CreateContactComponent, DisplayContactsComponent, ContactsService } from './contacts/contacts';
import { Logger } from './logger/logger.service';

@Component({
Expand All @@ -28,4 +26,4 @@ export class AppComponent {
public menuItems = [
{ name: 'Contacts', link: ['Contacts'] }
];
}
}
3 changes: 3 additions & 0 deletions ContactsManager/app/contacts/contacts.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from './create-contact/create-contact.component';
export * from './display-contacts/display-contacts.component';
export * from './contacts.service';
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Component } from 'angular2/core';
import { ControlGroup, FormBuilder, Validators } from 'angular2/common';
import { ContactsService } from './contacts.service';
import { ContactsService } from '../contacts.service';

@Component({
selector: 'create-contact',
templateUrl: 'app/contacts/create-contact.component.html'
templateUrl: 'app/contacts/create-contact/create-contact.component.html'
})
export class CreateContactComponent {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Component, OnInit } from 'angular2/core';
import { Contact } from './contact';
import { ContactsService } from './contacts.service';
import { Contact } from '../contact';
import { ContactsService } from '../contacts.service';

@Component({
selector: 'display-contacts',
templateUrl: 'app/contacts/display-contacts.component.html',
styleUrls: ['app/contacts/display-contacts.component.css']
templateUrl: 'app/contacts/display-contacts/display-contacts.component.html',
styleUrls: ['app/contacts/display-contacts/display-contacts.component.css']
})
export class DisplayContactsComponent implements OnInit {

Expand Down

0 comments on commit 695ced6

Please sign in to comment.