Comments (6)
You speak about the HTML5 mode right ?
The generation of href in links is totally delegated to the UI-router, and it supports HTML5 mode.
Do you add this line in your app configuration: $locationProvider.html5Mode(true)
?
The HTML5 mode requires specific settings on the server side: https://github.com/angular-ui/ui-router/wiki/Frequently-Asked-Questions#how-to-configure-your-server-to-work-with-html5mode
from angular-breadcrumb.
It's interesting that your example doesn't set $locationProvider.html5Mode(true)
but works like a charm.
We don't have $locationProvider.html5Mode(true)
, and just in your breadcrumb
links is missing the #
ui-sref
directive seems to be generating the urls correctly with #
hash
from angular-breadcrumb.
Oh right, maybe you are in this case: angular-ui/ui-router#1397
Do you use Angular 1.3 ?
In this case, you have to update the UI-router to the 0.2.12-pre1.
from angular-breadcrumb.
Yes! That indeed seems to be the issue.
0.2.11
installed from npm
is not actually the correct version that you get after you do a grunt
in theangular-ui-router
itself.
So that's a bug, their release/angular-ui-router.js
is not the same as build/angular-ui-router.js
Filled a bug there too
angular-ui/ui-router#1498
from angular-breadcrumb.
Btw, the 0.2.12-pre
is not even published to npm
as of today
from angular-breadcrumb.
Yes, as their names suggest, the release
directory contains only the last release (made with the grunt release task) and the build
directory contains an up-to-date but unstable build (made with default task).
It is exactly the same here (except my build directory is called dist
).
Btw, the
0.2.12-pre
is not even published tonpm
as of today
You can fill an other issue there ;)
from angular-breadcrumb.
Related Issues (20)
- Wiki addition
- Does "getStatesChain" consider state parameters to add a state to the state chain?
- Unexpected behavior, Views are changing automatically. HOT 1
- Direct links & stateParams HOT 2
- NG1 ES6 components usage HOT 10
- Doesn't work with Angular 1.6 components HOT 3
- Angular Material support for BreadCrumb
- Access state's controller scope in breadcrumb template
- Bootstrap 4 HOT 1
- Loss of context in breadcrumb labels HOT 1
- TypeError: Cannot read property 'ncyBreadcrumb' of null HOT 3
- How to send parameter HOT 1
- navigation fails if parent state requires stateparams
- Expose parameter for label from named view
- Dynamic breadcrumbs not showing on reload with ui-router 1.0.4
- Update to use transition hook API instead of state change events
- Angular 2 version?
- Unable to access $resolve for some components
- Dropdown element as Breadcrumb step
- how to set ncyBreadcrumbLink HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-breadcrumb.