Coder Social home page Coder Social logo

Comments (4)

m-e-conroy avatar m-e-conroy commented on August 22, 2024

Excellent! Thank you for sharing this, I've definitely learned something new.

from angular-dialog-service.

m-e-conroy avatar m-e-conroy commented on August 22, 2024

@mark0978 if you set wc in the opts object to a CSS class this will set the windowClass. I like what you did with the decorator and I learned a lot actually by following the URL you put in the comments of your code, but the windowClass parameter for the Angular-UI-Bootstrap Modal is covered by this service. Maybe I didn't document it well enough.

from angular-dialog-service.

mark0978 avatar mark0978 commented on August 22, 2024

This follows in the same spirit as the dialogs.dosomething pattern, so that the windowClass is just included without having to specify it everywhere. Just like you built out on top of modal, just thought it was a cool use of the decorator provider.

from angular-dialog-service.

m-e-conroy avatar m-e-conroy commented on August 22, 2024

@mark0978 Ok, I understand now why you did it this way. Thanks for the how-to, like I said I learned something new yesterday, in fact I spent about half my work day reading up on different blogs about the "decorating," thanks so much.

from angular-dialog-service.

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.