Comments (1)
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)
- Local variables and some directives not displayed correctly
- hide examples by default
- ngModel missing from escaped angular directives
- add class to show/hide link to indicate current state
- remove dependency to angular http service as it will be deprecated
- update example to bootstrap 4 beta
- handle case were source is unavailable HOT 1
- stopped working with angular 5 HOT 12
- add support for raw loader HOT 1
- scss and css files missing from package in 3.0.0 HOT 1
- Remove "dependency" to bootstrap HOT 1
- Add copy to clipboard notice HOT 1
- Copy to clipboard on double click HOT 1
- Select empty by default HOT 1
- Use inline with extra syntax HOT 3
- Dependency deprecation warning: travis-deploy-once (npm)
- Simple Angular-exemplify demo is not running. HOT 3
- Clicking on Markup does not open the source file HOT 4
- Dependency Dashboard
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-exemplify.