Skip to content

Commit 18a572e

Browse files
pkozlowski-opensourceicfantv
authored andcommitted
docs(demo): various navigation changes
closes ng-bootstrap#297
1 parent 222d98f commit 18a572e

File tree

6 files changed

+40
-35
lines changed

6 files changed

+40
-35
lines changed

demo/src/app/app.component.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
<a class="navbar-brand" href="https://ng-bootstrap.io">ng-bootstrap</a>
55
<ul class="nav navbar-nav">
66
<li class="nav-item">
7-
<a class="nav-link" [routerLink]="['getting-started']">Getting Started</a>
7+
<a class="nav-link" [routerLink]="['/getting-started']">Getting Started</a>
88
</li>
99
<li class="nav-item">
10-
<a class="nav-link" [routerLink]="['components/accordion']">Components</a>
10+
<a class="nav-link" [routerLink]="['/components']">Components</a>
1111
</li>
1212
</ul>
1313
<p class="github-buttons pull-lg-right">

demo/src/app/app.routes.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ import {
1919
} from './components';
2020

2121
const routes: RouterConfig = [
22-
{path: '', redirectTo: 'default'},
23-
{path: 'default', component: DefaultComponent},
22+
{path: '', redirectTo: 'home'},
23+
{path: 'home', component: DefaultComponent},
2424
{path: 'getting-started', component: GettingStarted},
25+
{path: 'components', redirectTo: 'components/accordion'},
2526
{path: 'components/accordion', component: NgbdAccordion},
2627
{path: 'components/alert', component: NgbdAlert},
2728
{path: 'components/buttons', component: NgbdButtons},

demo/src/app/default/default.component.html

+18-5
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,25 @@
22
<div class="container">
33
<div class="pull-lg-left">
44
<h1 class="display-3">ng-bootstrap</h1>
5-
<p class="lead">Angular 2, powered by Bootstrap</p>
65
<hr class="m-y-2 header">
7-
<p>Bootstrap 4 components written in pure Angular 2 by the ng-bootstrap Team</p>
8-
<p class="lead">
9-
<a type="button" [routerLink]="['/getting-started']" class="btn btn-md btn-secondary-outline header-button">Get Started</a>
10-
</p>
6+
<p>Angular 2, powered by Bootstrap 4 written by the angular-ui Team</p>
117
</div>
128
</div>
139
</div>
10+
11+
<section class="container">
12+
<p class="lead">
13+
Welcome to the Angular 2 version of the <a target="_blank" href="https://github.com/angular-ui/bootstrap">Angular UI Bootstrap</a>
14+
library. This library is being built from scratch in Typescript using the Bootstrap 4 CSS framework.
15+
</p>
16+
<p class="lead">
17+
As with Bootstrap 4 and Angular 2, this library is a work in progress.
18+
Please check out our <a href="https://github.com/ng-bootstrap/core/wiki/Roadmap" target="_blank">roadmap</a> and
19+
<a href="https://github.com/ng-bootstrap/core/issues" target="_blank">list of issues</a> to see all the things we are implementing.
20+
Feel free to make comments there.
21+
</p>
22+
23+
<p class="lead">
24+
To get started quickly you can follow <a [routerLink]="['/getting-started']">installation instructions</a> or just browse <a [routerLink]="['/components']">demos</a> for the existing components.
25+
</p>
26+
</section>

demo/src/app/default/default.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {ROUTER_DIRECTIVES} from '@angular/router';
33

44
@Component({
55
selector: 'ngbd-default',
6-
directives: [...ROUTER_DIRECTIVES],
6+
directives: [ROUTER_DIRECTIVES],
77
template: require('./default.component.html')
88
})
99
export class DefaultComponent {}
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,17 @@
11
<ngbd-content-wrapper component="Getting Started">
2-
<section class="container">
3-
<p class="lead">
4-
Welcome to the Angular 2 version of the <a target="_blank" href="https://github.com/angular-ui/bootstrap">Angular UI Bootstrap</a>
5-
library. This library is being built from scratch in Typescript using the Bootstrap 4 CSS framework.
6-
</p>
7-
<p class="lead">
8-
As with Bootstrap 4 and Angular 2, this library is a work in progress. Please check out our list of issues to see all the things we are implementing. Feel free to make comments there.
9-
</p>
10-
<h3>
11-
Dependencies
12-
</h3>
13-
<p>
14-
This repository contains a set of native Angular 2 directives based on Bootstrap's markup and CSS.
15-
As a result no dependency on jQuery or Bootstrap's JavaScript is required. The only required dependencies are:
16-
</p>
17-
<ul>
18-
<li>
19-
<a href="https://angular.io">Angular</a> (<em>requires</em> Angular version 2 or higher)
20-
</li>
21-
<li>
22-
<a href="http://v4-alpha.getbootstrap.com">Bootstrap CSS</a> (tested with version 4.0aV2)
23-
</li>
24-
</ul>
25-
</section>
2+
<h3>
3+
Dependencies
4+
</h3>
5+
<p>
6+
This repository contains a set of native Angular 2 directives based on Bootstrap's markup and CSS.
7+
As a result no dependency on jQuery or Bootstrap's JavaScript is required. The only required dependencies are:
8+
</p>
9+
<ul>
10+
<li>
11+
<a href="https://angular.io" target="_blank">Angular</a> (<em>requires</em> Angular version 2 or higher)
12+
</li>
13+
<li>
14+
<a href="http://v4-alpha.getbootstrap.com" target="_blank">Bootstrap CSS</a> (tested with version 4.0aV2)
15+
</li>
16+
</ul>
2617
</ngbd-content-wrapper>

demo/src/app/shared/side-nav/side-nav.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h4>Home</h4>
1212
</ul>
1313
</div>
1414
<div class="bd-toc-item">
15-
<a class="bd-toc-link" [routerLink]="['/components/accordion']">
15+
<a class="bd-toc-link" [routerLink]="['/components']">
1616
<h4>Components</h4>
1717
</a>
1818
<ul class="nav bd-sidenav">

0 commit comments

Comments
 (0)