This repository has been archived by the owner on Sep 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update everything to rc6, fix demo/tests.
- Loading branch information
Douglas Ludlow
committed
Sep 9, 2016
1 parent
88d43b9
commit f948d6e
Showing
24 changed files
with
328 additions
and
273 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
language: node_js | ||
node_js: | ||
- "5" | ||
- "4" | ||
- "6" | ||
|
||
script: | ||
- npm run build | ||
|
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 |
---|---|---|
@@ -1,20 +1,8 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { ROUTER_DIRECTIVES, Router } from '@angular/router'; | ||
|
||
import { appRouterProviders } from './app.routes'; | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'modal-demo', | ||
template: '<router-outlet></router-outlet>', | ||
providers: [appRouterProviders], | ||
directives: [ROUTER_DIRECTIVES] | ||
}) | ||
export class AppComponent implements OnInit { | ||
|
||
constructor(private router: Router) { | ||
} | ||
|
||
ngOnInit() { | ||
this.router.navigate(['/']); | ||
} | ||
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,25 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { BrowserModule } from '@angular/platform-browser'; | ||
import { FormsModule } from '@angular/forms'; | ||
import { Ng2Bs3ModalModule } from '../src/ng2-bs3-modal/ng2-bs3-modal'; | ||
import { routing } from './app.routes'; | ||
import { AppComponent } from './app.component'; | ||
import { ModalDemoComponent } from './modal-demo.component'; | ||
import { HelloComponent } from './hello.component'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
BrowserModule, | ||
FormsModule, | ||
routing, | ||
Ng2Bs3ModalModule | ||
], | ||
declarations: [ | ||
AppComponent, | ||
ModalDemoComponent, | ||
HelloComponent | ||
], | ||
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 |
---|---|---|
@@ -1,13 +1,12 @@ | ||
import { provideRouter, RouterConfig } from '@angular/router'; | ||
import { ModuleWithProviders } from '@angular/core'; | ||
import { Routes, RouterModule } from '@angular/router'; | ||
|
||
import { ModalDemoComponent } from './modal-demo.component'; | ||
import { HelloComponent } from './hello.component'; | ||
|
||
const routes: RouterConfig = [ | ||
{path: '', component: ModalDemoComponent}, | ||
{path: 'hello', component: HelloComponent} | ||
const routes: Routes = [ | ||
{ path: '', component: ModalDemoComponent }, | ||
{ path: 'hello', component: HelloComponent } | ||
]; | ||
|
||
export const appRouterProviders = [ | ||
provideRouter(routes) | ||
]; | ||
export const routing: ModuleWithProviders = RouterModule.forRoot(routes); |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { bootstrap } from '@angular/platform-browser-dynamic'; | ||
import { AppComponent } from './app.component'; | ||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | ||
import { AppModule } from './app.module'; | ||
|
||
bootstrap(AppComponent, []); | ||
platformBrowserDynamic().bootstrapModule(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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"target": "es5", | ||
"noImplicitAny": false, | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"inlineSourceMap": true, | ||
"declaration": false | ||
} | ||
} |
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
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
Oops, something went wrong.