Comments (8)
Hi egel!
I've been getting a lot of questions about how to use this example with UI-Router, and to be honest I'm not quite sure how to go about it yet... I think switching out the default routing would complicate things for new users who aren't familiar with all the available plugin modules, so I'm a little hesitant to include UI-Router in the main project.
Maybe I could create a fork of the main project with UI-router, but I won't have time to make something like that right away. So, in the meantime I could take a look at your project if it's publicly available...?
from angular-client-side-auth.
@egel Hey there, I am very interested in this as well. What have you tried so far to get it to work?
from angular-client-side-auth.
I played around with it today, and was able to get ui-router working. I haven't done anything fancy with nested views and such yet, but I'll try to get that working properly too. Anyway, check out the branch called ui-router.
from angular-client-side-auth.
Hi Guys,
As well as you @fnakstad I'm successful in implementation of ui-route. My problem was a coffeeScript and his "conversion" (in some case very odd to me ;) ) of coffee to js.
I also have some objects to global idea of accessLevels in routingConfig.js but this is for another topic ;)
Generally I think you've done a great job in this repo and if I had some time in recent weeks I'd love to fork this repo and try to support this good looking example :)
from angular-client-side-auth.
Glad you figured it out, @egel! Did you try it out with nested views yet?
Also, a little heads up to anyone using Jade as their template engine:
If you put boolean/value-less attributes in your tags, e.g. div(ui-view)
, Jade will compile this to HTML of the form <div ui-view="ui-view"></div>
. This can be a problem if you don't want to give your view a specific name, and had me lost and confused for the longest time. You can however get around this by telling Jade your template is using doctype HTML5, in which case it will handle boolean attributes correctly. Just preface all your partial views with !!! 5
.
from angular-client-side-auth.
@fnakstad and @egel: thank you! I can't wait to play around with the ui-router branch and nested views.
from angular-client-side-auth.
@fnakstad thanks for doing that, I was just about to do it myself but you did it for me, awesome!
from angular-client-side-auth.
This is now under way in the ui-router-migration branch. Please check this issue for more information.
from angular-client-side-auth.
Related Issues (20)
- Replace $cookieStore to $cookies HOT 1
- I am new to npm and angular, I tried on windows 8.1, i was able to complete npm install, but npm start gave error HOT 1
- Server depends on a file located in the client directory HOT 1
- book mark HOT 2
- npm install throwing me to include npm-debug.log
- react js issue
- npm run build error HOT 3
- Can't start the "npm run dev" on my ubuntu 17.10 Laravel 5.5
- I am new with Node and it gives me error whenever i run npm start command.Can anyone please help me....
- i have error when i write npm start
- I'm new with Node
- Unresolved variable or type routingConfig HOT 2
- Google Logout HOT 2
- How about using JWT instead of cookies HOT 5
- "data.access" in toState is always false HOT 2
- Integration with Django HOT 3
- Social sites login
- Question about passing the user to HTTP GET * HOT 1
- Use ng-if instead CSS HOT 5
- any sample with asp.net mvc 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-client-side-auth.