Skip to content

Commit 40a9bc9

Browse files
committed
chore(release): 0.2.0
1 parent 5c242a1 commit 40a9bc9

19 files changed

+162
-152
lines changed

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bleenco/angular-webpack-seed",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"main": "index.js",
55
"scripts": {
66
"start": "webpack-dev-server --env.client --env.serve --progress",
@@ -43,8 +43,6 @@
4343
"@angular/platform-browser-dynamic": "^4.0.0",
4444
"@angular/platform-server": "^4.0.0",
4545
"@angular/router": "^4.0.0",
46-
"@angularclass/universal-express": "^1.0.1",
47-
"@angularclass/universal-transfer-state": "^1.0.11",
4846
"core-js": "^2.4.1",
4947
"express": "^4.15.2",
5048
"rxjs": "^5.2.0",
@@ -80,7 +78,6 @@
8078
"webpack": "^2.3.1",
8179
"webpack-dev-server": "^2.4.2",
8280
"webpack-dll-bundles-plugin": "^1.0.0-beta.5",
83-
"webpack-merge": "^4.1.0",
84-
"webpack-node-externals": "^1.5.4"
81+
"webpack-merge": "^4.1.0"
8582
}
8683
}

src/api/app.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/api/data.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/app/+lazy/lazy.module.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/app/app.component.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<h1>Angular Webpack Seed</h1>
2-
<a routerLink="/">Home</a>
3-
<a routerLink="/lazy">Lazy</a>
4-
<router-outlet></router-outlet>
2+
3+
<div>
4+
<a routerLink="/">Home</a>
5+
<a routerLink="/lazy">Lazy</a>
6+
</div>
7+
8+
<div>
9+
<router-outlet></router-outlet>
10+
</div>

src/app/app.component.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
import { Component, OnInit } from '@angular/core';
2-
import { TransferState } from '@angularclass/universal-transfer-state';
32

43
@Component({
54
selector: 'app-root',
65
templateUrl: 'app.component.html'
76
})
8-
export class AppComponent implements OnInit {
9-
constructor(private cache: TransferState) {}
10-
11-
ngOnInit() {
12-
this.cache.set('cached', true);
13-
}
14-
}
7+
export class AppComponent { }

src/app/app.module.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,21 @@ import { HttpModule } from '@angular/http';
55
import { RouterModule } from '@angular/router';
66
import { FormsModule } from '@angular/forms';
77
import { AppComponent } from './app.component';
8-
import { HomeViewComponent } from './home/home-view.component';
9-
import { TransferHttpModule } from '@angularclass/universal-transfer-state/browser';
10-
8+
import { AppHomeComponent } from './components/app-home';
119

1210
@NgModule({
1311
imports: [
1412
CommonModule,
15-
HttpModule,
1613
FormsModule,
17-
TransferHttpModule,
1814
RouterModule.forRoot([
19-
{ path: '', component: HomeViewComponent, pathMatch: 'full'},
20-
{ path: 'lazy', loadChildren: './+lazy/lazy.module#LazyModule'}
15+
{ path: '', component: AppHomeComponent, pathMatch: 'full'},
16+
{ path: 'lazy', loadChildren: './components/+lazy/lazy.module#LazyModule' }
2117
])
2218
],
2319
providers: [
24-
{ provide: APP_BASE_HREF, useValue: '/'}
20+
{ provide: APP_BASE_HREF, useValue: '/' }
2521
],
26-
declarations: [ AppComponent, HomeViewComponent ],
22+
declarations: [ AppComponent, AppHomeComponent ],
2723
exports: [ AppComponent ]
2824
})
2925
export class AppModule {}

src/app/browser-app.module.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@ import { NgModule } from '@angular/core';
22
import { BrowserModule } from '@angular/platform-browser';
33
import { AppComponent } from './app.component';
44
import { AppModule } from './app.module';
5-
import { BrowserTransferStateModule } from '@angularclass/universal-transfer-state/browser';
65

76
@NgModule({
87
bootstrap: [ AppComponent ],
98
imports: [
109
BrowserModule.withServerTransition({
1110
appId: 'my-app-id'
1211
}),
13-
BrowserTransferStateModule,
1412
AppModule
1513
]
1614
})
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { NgModule, Component } from '@angular/core';
2+
import { RouterModule } from '@angular/router';
3+
4+
5+
@Component({
6+
selector: 'app-lazy-view',
7+
template: `<h3>i'm lazy</h3>`
8+
})
9+
export class AppLazyViewComponent {}
10+
11+
@NgModule({
12+
declarations: [ AppLazyViewComponent ],
13+
imports: [
14+
RouterModule.forChild([
15+
{ path: '', component: AppLazyViewComponent, pathMatch: 'full' }
16+
])
17+
]
18+
})
19+
export class LazyModule { }
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<input type="text" [(ngModel)]="value" placeholder="Write here...">
2+
<p>{{ value }}</p>

0 commit comments

Comments
 (0)