Comments (9)
For those who might face the same problem. We managed to resolve the depency issue by using npm overrides.
At root level in package.json
we added this:
"overrides": {
"@uirouter/angular": {
"@angular/common": "^16.0.0",
"@angular/core": "^16.0.0"
}
}
from angular.
We have now migrated to @angular/routing
. Not gonna lie, it was a hassle in some cases. The main issue, as far as my understanding goes, is that ui-router
is not reusing components, while @angular/routing
do for performance. This created major issues in instances where reloading and switching routes depended on ngOnInit
being called again. There were ways around this, but it was not easy. Custom route resuse strategies where part of the solution but not completely.
from angular.
Version 12 is out with angular 16 support
from angular.
Do anyone plan on fixing the to make it stable with angular 15 and 16 without doing a hack work around. Reason I ask is because most of the docs are outdated and I don't see a passing build. Is this safe to use for production ?
from angular.
You shouldn't have any issues running angular 15 ?
from angular.
@wawyed I ran into issue thanks for response when creating a empty angular 15 project and adding UI router and then trying to do ng serve I got errors trying to build UI project. Can you share a repo with empty angular 15 project with UI route to demo that it's working ? I don't think UI Router is support in 15 and 16 and I look at the old demos using UI router there all in angular 9 and 10 which is outdate now
from angular.
from angular.
from angular.
@wawyed I ran into issue thanks for response when creating a empty angular 15 project and adding UI router and then trying to do ng serve I got errors trying to build UI project. Can you share a repo with empty angular 15 project with UI route to demo that it's working ? I don't think UI Router is support in 15 and 16 and I look at the old demos using UI router there all in angular 9 and 10 which is outdate now
https://github.com/ui-router/sample-app-angular This should be using angular 15
from angular.
Related Issues (20)
- Support Angular 11 HOT 1
- Angular 12 HOT 8
- Future of ui-router? HOT 6
- Error: State 'quizzes' is already defined HOT 2
- uiSref doesn't work unless matching "name". Can't use full path/name. HOT 2
- How to lazy load with chunks HOT 11
- Incompatibility with Angular v13 - removal of `NgModuleFactoryLoader` HOT 1
- Angular 13 Support (libs update) and version policy HOT 13
- [Discussion] Monorepo requirements for ui-router packages HOT 11
- Redirects on local anchor reference HOT 2
- onError not redirecting HOT 1
- Angular v14 support HOT 2
- [bug(?)]: future state declaration's data not passed/merged to/with loaded child state HOT 1
- Angular 15 support HOT 5
- MergeInjector breaks normal Angular DI priority HOT 3
- [question] Lazy loaded module empty after creating
- Breaks when building with Angular 16
- Angular 17 support HOT 4
- Incorrect Ui Routing on iOS 17 safari private browsing mode.
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.