Giter Site home page Giter Site logo

Comments (9)

khrome83 avatar khrome83 commented on September 17, 2024

I have tried to use the extraHead property to pass in a JS file. But this does not seem to interact with the components on the page.

            extraHead: [
                '<script src="/js/head.js"></script>',
                '<script src="/js/main.js"></script>'
            ],

What is the best way for non-angular apps to include a JS file for the styleguide sections?

from sc5-styleguide.

khrome83 avatar khrome83 commented on September 17, 2024

Has anyone had any luck getting non-angular JavaScript exposed to a web component? To me this is Critical for us to adopt this as our StyleGuide generator. I work for General Motors and would love to push this forward as our internal standard.

from sc5-styleguide.

varya avatar varya commented on September 17, 2024

extraHead applies for a style-guide page itself and may not work with the components because each of them is encapsulated with shadow DOM.
Applying extra JS to a component is not implemented yet. We will create a task in the backlog to do this.

from sc5-styleguide.

vedrani avatar vedrani commented on September 17, 2024

+1 This would be great feature :)

from sc5-styleguide.

hannu avatar hannu commented on September 17, 2024

As a workaround solution you can use extraHead and disable shadow DOM encapsulation with disableEncapsulation option.

from sc5-styleguide.

vedrani avatar vedrani commented on September 17, 2024

Thx :) @hannu

from sc5-styleguide.

azevedo avatar azevedo commented on September 17, 2024

👍

from sc5-styleguide.

patapron avatar patapron commented on September 17, 2024

It does already?

from sc5-styleguide.

khrome83 avatar khrome83 commented on September 17, 2024

This was resolved be a release later in the year. Closing the issue.

from sc5-styleguide.

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.