-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from juanpmarin-infocorp/master
Update to Angular2 RC5
- Loading branch information
Showing
14 changed files
with
221 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
import {Component} from "@angular/core"; | ||
import {Location} from '@angular/common'; | ||
import "../src/index"; | ||
|
||
@Component({ | ||
selector: "my-app", | ||
styles: [`header, main, footer { padding-left: 260px; }`], | ||
template: ` | ||
<sideNav></sideNav> | ||
<main> | ||
<h3>Angular2 Materialize Examples</h3> | ||
<br/> | ||
<router-outlet></router-outlet> | ||
</main> | ||
` | ||
}) | ||
export class AppComponent { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { BrowserModule } from '@angular/platform-browser'; | ||
import { LocationStrategy, HashLocationStrategy } from '@angular/common'; | ||
|
||
import { AppComponent } from './app.component'; | ||
import { | ||
Buttons, | ||
Collapsible, | ||
Dropdown, | ||
Dialogs, | ||
Tabs, | ||
TabsRouting, | ||
Forms, | ||
SideNav, | ||
DatePicker, | ||
ModelBindings | ||
} from './components/index'; | ||
import { routing } from './app.routing' | ||
|
||
|
||
@NgModule({ | ||
declarations: [ | ||
AppComponent, | ||
Buttons, | ||
Collapsible, | ||
Dropdown, | ||
Dialogs, | ||
Tabs, | ||
TabsRouting, | ||
Forms, | ||
SideNav, | ||
DatePicker, | ||
ModelBindings | ||
], | ||
imports: [ | ||
BrowserModule, | ||
routing | ||
], | ||
providers: [ | ||
{ provide: LocationStrategy, useClass: HashLocationStrategy }, | ||
], | ||
bootstrap: [AppComponent] | ||
}) | ||
export class AppModule { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import { Routes, RouterModule } from '@angular/router'; | ||
import { | ||
Buttons, | ||
Collapsible, | ||
Dropdown, | ||
Dialogs, | ||
Tabs, | ||
TabsRouting, | ||
Forms, | ||
SideNav, | ||
DatePicker, | ||
ModelBindings | ||
} from './components/index'; | ||
|
||
|
||
const appRoutes: Routes = [ | ||
{ | ||
path: '', | ||
redirectTo: 'buttons', | ||
pathMatch: 'full' | ||
}, | ||
{ | ||
path: 'buttons', | ||
component: Buttons | ||
}, | ||
{ | ||
path: 'collapsible', | ||
component: Collapsible | ||
}, | ||
{ | ||
path: 'dialogs', | ||
component: Dialogs | ||
}, | ||
{ | ||
path: 'dropdowns', | ||
component: Dropdown | ||
}, | ||
{ | ||
path: 'forms', | ||
component: Forms | ||
}, | ||
{ | ||
path: 'tabs', | ||
component: Tabs | ||
}, | ||
{ | ||
path: 'tabs-routing/...', | ||
component: TabsRouting | ||
}, | ||
{ | ||
path: 'datepicker', | ||
component: DatePicker | ||
}, | ||
{ | ||
path: 'modelbindings', | ||
component: ModelBindings | ||
} | ||
]; | ||
|
||
export const routing = RouterModule.forRoot(appRoutes); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export { SideNav } from "./side-nav"; | ||
export { Forms } from "./forms"; | ||
export { Tabs } from "./tabs"; | ||
export { TabsRouting } from "./tabs-routing"; | ||
export { Dialogs } from "./dialogs"; | ||
export { Dropdown } from "./dropdown"; | ||
export { Collapsible } from "./collapsible"; | ||
export { Buttons } from "./buttons"; | ||
export { DatePicker } from "./datepicker"; | ||
export { ModelBindings } from "./model-bindings/model-bindings"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ System.config({ | |
"@angular/core": "npm:@angular/[email protected]", | ||
"@angular/platform-browser": "npm:@angular/[email protected]", | ||
"@angular/platform-browser-dynamic": "npm:@angular/[email protected]", | ||
"@angular/router": "npm:@angular/[email protected]", | ||
"@angular/router-deprecated": "npm:@angular/[email protected]", | ||
"clean-css": "npm:[email protected]", | ||
"crypto": "github:jspm/[email protected]", | ||
|
@@ -41,7 +42,7 @@ System.config({ | |
"reflect-metadata": "npm:[email protected]", | ||
"rxjs": "npm:[email protected]", | ||
"typescript": "npm:[email protected]", | ||
"zone.js": "npm:[email protected].12", | ||
"zone.js": "npm:[email protected].4", | ||
"github:jspm/[email protected]": { | ||
"assert": "npm:[email protected]" | ||
}, | ||
|
@@ -96,14 +97,27 @@ System.config({ | |
"@angular/core": "npm:@angular/[email protected]", | ||
"process": "github:jspm/[email protected]" | ||
}, | ||
"npm:@angular/[email protected]": { | ||
"@angular/core": "npm:@angular/[email protected]", | ||
"process": "github:jspm/[email protected]" | ||
}, | ||
"npm:@angular/[email protected]": { | ||
"@angular/core": "npm:@angular/[email protected]", | ||
"process": "github:jspm/[email protected]" | ||
}, | ||
"npm:@angular/[email protected]": { | ||
"@angular/core": "npm:@angular/[email protected]", | ||
"process": "github:jspm/[email protected]" | ||
}, | ||
"npm:@angular/[email protected]": { | ||
"process": "github:jspm/[email protected]", | ||
"rxjs": "npm:[email protected]", | ||
"zone.js": "npm:[email protected]" | ||
"zone.js": "npm:[email protected]" | ||
}, | ||
"npm:@angular/[email protected]": { | ||
"process": "github:jspm/[email protected]", | ||
"rxjs": "npm:[email protected]", | ||
"zone.js": "npm:[email protected]" | ||
}, | ||
"npm:@angular/[email protected]": { | ||
"@angular/common": "npm:@angular/[email protected]", | ||
|
@@ -112,17 +126,39 @@ System.config({ | |
"@angular/platform-browser": "npm:@angular/[email protected]", | ||
"process": "github:jspm/[email protected]" | ||
}, | ||
"npm:@angular/[email protected]": { | ||
"@angular/common": "npm:@angular/[email protected]", | ||
"@angular/compiler": "npm:@angular/[email protected]", | ||
"@angular/core": "npm:@angular/[email protected]", | ||
"@angular/platform-browser": "npm:@angular/[email protected]", | ||
"process": "github:jspm/[email protected]" | ||
}, | ||
"npm:@angular/[email protected]": { | ||
"@angular/common": "npm:@angular/[email protected]", | ||
"@angular/compiler": "npm:@angular/[email protected]", | ||
"@angular/core": "npm:@angular/[email protected]", | ||
"process": "github:jspm/[email protected]" | ||
}, | ||
"npm:@angular/[email protected]": { | ||
"@angular/common": "npm:@angular/[email protected]", | ||
"@angular/compiler": "npm:@angular/[email protected]", | ||
"@angular/core": "npm:@angular/[email protected]", | ||
"process": "github:jspm/[email protected]" | ||
}, | ||
"npm:@angular/[email protected]": { | ||
"@angular/common": "npm:@angular/[email protected]", | ||
"@angular/core": "npm:@angular/[email protected]", | ||
"@angular/platform-browser": "npm:@angular/[email protected]" | ||
}, | ||
"npm:@angular/[email protected]": { | ||
"@angular/common": "npm:@angular/[email protected]", | ||
"@angular/compiler": "npm:@angular/[email protected]", | ||
"@angular/core": "npm:@angular/[email protected]", | ||
"@angular/platform-browser": "npm:@angular/[email protected]", | ||
"@angular/platform-browser-dynamic": "npm:@angular/[email protected]", | ||
"process": "github:jspm/[email protected]", | ||
"rxjs": "npm:[email protected]" | ||
}, | ||
"npm:[email protected]": { | ||
"fs": "github:jspm/[email protected]", | ||
"module": "github:jspm/[email protected]", | ||
|
@@ -412,7 +448,7 @@ System.config({ | |
"npm:[email protected]": { | ||
"indexof": "npm:[email protected]" | ||
}, | ||
"npm:[email protected].12": { | ||
"npm:[email protected].4": { | ||
"buffer": "github:jspm/[email protected]", | ||
"process": "github:jspm/[email protected]" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.