Coder Social home page Coder Social logo

Comments (8)

fnakstad avatar fnakstad commented on July 30, 2024

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.

jcumminsr1 avatar jcumminsr1 commented on July 30, 2024

@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.

fnakstad avatar fnakstad commented on July 30, 2024

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.

egel avatar egel commented on July 30, 2024

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.

fnakstad avatar fnakstad commented on July 30, 2024

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.

jcumminsr1 avatar jcumminsr1 commented on July 30, 2024

@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.

jcollum-hcg avatar jcollum-hcg commented on July 30, 2024

@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.

fnakstad avatar fnakstad commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.