Giter Site home page Giter Site logo

Comments (1)

hjalmers avatar hjalmers commented on May 9, 2024

This would indeed be a very nice feature but it's a bit complicated as the annotations are removed when building using --aot. From my understanding it's possible to keep them when using custom decorators but not really sure how that would work or turn out as this component relies on the template from the root element. Another option would be to fetch the template from the dom after it's been rendered but then we would need to parse the html and remove things like _ngcontent-c7 etc. and re-add inputs and other attributes that are removed and this would be a nightmare so I'd strongly advice against it.

However, there are some pretty easy workarounds for apps compiled with aot. The easiest one would be to use the sources input instead and load the source files directly form github or wherever they reside. If the source code is unavailable, I'd advice writing a script and copy the files need for the snippets to assets and load them from there. Loading files using raw-loader is also another option, the only downside being that it's currently not possible to use selectors with files loaded using the raw-loader.

from angular-exemplify.

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.