Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .angular-cli.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project": {
"name": "ng5-breadcrumb"
},
"apps": [
{
"root": "src",
"outDir": "dist",
"assets": [],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "test.ts",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": [
"styles.css"
],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}
}
],
"e2e": {
"protractor": {
"config": "./protractor.conf.js"
}
},
"lint": [
{
"project": "src/tsconfig.app.json",
"exclude": "**/node_modules/**"
},
{
"project": "src/tsconfig.spec.json",
"exclude": "**/node_modules/**"
},
{
"project": "e2e/tsconfig.e2e.json",
"exclude": "**/node_modules/**"
}
],
"test": {
"karma": {
"config": "./karma.conf.js"
}
},
"defaults": {
"styleExt": "css",
"component": {}
}
}
56 changes: 46 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,46 @@
/node_modules/
/build/
/dist/
/.idea/
*.log

/aot
/compiled
*.metadata.json
*.ngsummary.json
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc

# dependencies
/node_modules

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
testem.log
/typings

# e2e
/e2e/*.js
/e2e/*.map

# System Files
.DS_Store
Thumbs.db

# Lock file
package-lock.json

40 changes: 0 additions & 40 deletions .npmignore

This file was deleted.

3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

6 changes: 2 additions & 4 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
The MIT License (MIT)

Copyright (c) 2016 Gerhard Mostert
MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +16,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# ng2-breadcrumb
# ng5-breadcrumb

This component is a fork from https://github.com/gmostert/ng5-breadcrumb.
The component has been updated to work with Angular 5 and Angular CLI 1.5.

This component generates a breadcrumb trail, as you navigate to child routes using the @angular/router. It interprets the browser URL of a navigate request,
in the same way the component router does to match a path to a specific component, to build up a hierarchy of available parent/child routes for that destination.

Expand All @@ -14,26 +18,26 @@ Optionally uses bootstrap.css (v 3.x.x) for styling of some elements (although t
## Install
Install the module via npm:

npm install ng2-breadcrumb --save
npm install ng5-breadcrumb --save

## Usage
Import the this module into your module using forRoot()

import {Ng2BreadcrumbModule} from 'ng2-breadcrumb/ng2-breadcrumb';
import {Ng5BreadcrumbModule} from 'ng5-breadcrumb';

@NgModule({
imports: [Ng2BreadcrumbModule.forRoot()]
imports: [Ng5BreadcrumbModule.forRoot()]
})
export class AppModule {
...
}

Alternatively you can import the this module into your module and manually provide its service

import {Ng2BreadcrumbModule, BreadcrumbService} from 'ng2-breadcrumb/ng2-breadcrumb';
import {ng5BreadcrumbModule, BreadcrumbService} from 'ng5-breadcrumb';

@NgModule({
imports: [Ng2BreadcrumbModule],
imports: [ng5BreadcrumbModule],
providers: [BreadcrumbService]
})
export class AppModule {
Expand Down Expand Up @@ -88,10 +92,6 @@ Hide certain routes (paths) from the breadcrumb trail using an exact url or rege
npm install
npm build

To build a standalone bundle:

npm bundles

## Running
## Running with Angular CLI

npm start
ng serve
39 changes: 0 additions & 39 deletions app/app.module.js

This file was deleted.

1 change: 0 additions & 1 deletion app/app.module.js.map

This file was deleted.

38 changes: 0 additions & 38 deletions app/app.module.ngfactory.ts

This file was deleted.

28 changes: 0 additions & 28 deletions app/app.module.ts

This file was deleted.

Loading