-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working example #9
Comments
+1. I just spent > 1 hour moving all of my previously working nested views to use the stateHelper and now nothing loads and no error message is thrown. |
I am working with a cool admin theme Angulr - Bootstrap Admin Web App with AngularJS. For whatever reason I cannot get contacts/list in the slightly modified example below to load. There no errors. Template if found and loaded however the page is not rendered. There are no errors. Perhaps this relates another currently opened issue.
|
Did you try to place url property like in the following example:
|
Thank you for the reply. Here is my config. I have the following link:
When I mouse over the link, it correctly points to
|
Ok. I had similar mind breaking problem and i solved this like that: On the page with router ex. index.HTML You shpuld have tag witg ui-view eg. Then in the states You should place |
Sorry for brealing in the middle of sentence but i'm writing on mobile and i'm in the bus. So You shoud place in the states that had to change this div something like: Hope this would help. I will try write more understandable example later. |
Thanks for trying to clue me in. I am afraid I will need to wait for a more clear answer. :) Thank You |
This is why I asked for working example. ok i will try to show this on the most basic example First of all (like I write before) you should have in your file index.html a tag that contains ui-view which you would like to change/fill dependant on the path(url) that user is visiting so you would have in index html something like that:
Now in the router configuration you could replace those divs like that
Now try to make this working
and you could now use this or your page ex. index.html:
and you can see if state is changing and then i suggest you to read this: and this: and if it still want work I suggest you to put your sample code on the fiddle or somewhere so I could try to help you fix it. |
i had a similar problem and posted a question on stack overflow http://stackoverflow.com/questions/28161642/how-to-get-ui-router-statehelper-working - while I went back to $stateProvider dot notation because I couldn't be bothered continuing with stateHelper - someone kindly provided a working example that you'll see in the accepted response. My advice is to avoid libraries / directives etc who's authors can't be bothered providing decent documentation with working examples for all the important options. If it's not worth their time (like 5 minutes in this case) to create a working plunker or jsfiddle, you know they're either not in it for the long haul or simply incompetent - and you're bound to have problems down the road. |
This is GitHub, you could just submit a pull request with more doc on the readme. Also you do realize the entire source code for the project is basically 39 lines?? You could actually read the source. The project literally converts your JSON structure into dot notation, if you can use dot notation and not this project you didn't take the 5 minutes to read the readme. |
+1 |
It's not clear from the readme.md that there is actually a 'url' field. |
Guys! Finally I got this!
And if you need see this working: http://codepen.io/rochapablo/pen/Zpyamb/ |
Could you please attach working example with html and nested views (with they controllers) because I can't make nested views work and from ReadMe file I don't see why.
The text was updated successfully, but these errors were encountered: