Skip to content
This repository was archived by the owner on Jul 25, 2019. It is now read-only.

Commit 941a37e

Browse files
committedJun 12, 2016
update template barrels to use 'export *', as seen in angular/angular-cli#863
hint: this behavior is not included in latest version of angular-cli, use master! $ git clone https://github.com/angular/angular-cli.git angular-cli $ cd angular-cli $ git checkout 01e31ab71cb8f37474edac40f4636638738aee19 $ npm link FYI: @GregOnNet @d-koppenhagen @fmalcher
1 parent 818569c commit 941a37e

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed
 

‎book-rating/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component } from '@angular/core';
2-
import { DashboardComponent} from './dashboard';
2+
import { DashboardComponent } from './dashboard';
33

44
@Component({
55
moduleId: module.id,

‎book-rating/src/app/book/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { BookComponent } from './book.component';
1+
export * from './book.component';

‎book-rating/src/app/dashboard/dashboard.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ import { Book } from '../shared';
1010
})
1111
export class DashboardComponent implements OnInit {
1212

13-
book: Book;
13+
books: Book[];
1414

1515
constructor(){}
1616

1717
ngOnInit() {
18-
this.book = new Book('Bericht DWX 2016', 'Das haben wir erlebt');
18+
this.books = [
19+
new Book('Angular 2', 'Einstieg in die komponentenbasierte Entwicklung'),
20+
new Book('Bericht DWX 2016', 'Das haben wir erlebt', 5)];
1921
}
20-
2122
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { DashboardComponent } from './dashboard.component';
1+
export * from './dashboard.component';

‎book-rating/src/app/shared/book.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export class Book {
2-
constructor(public title: string,
2+
constructor(public title: string,
33
public description: string,
44
public rating: number = 0) { }
55
}

‎book-rating/src/app/shared/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { Book } from './book';;
1+
export * from './book';

1 commit comments

Comments
 (1)

JohannesHoppe commented on Jun 12, 2016

@JohannesHoppe
MemberAuthor

and after this

$ cd book-rating
$ npm link angular-cli
$ npm start

Don't forget the npm link angular-cli command, otherwise it loads the local angular-cli!!
We might consider to use angular-cli/master also for the BM!

This repository has been archived.