You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for resolving #98.
I really appreciate for your help. You saved my time a lot!
Let me ask one more thing.
Is it possible to escape the contents of three back-thrashes?
I would like to create a code example site with this module.
In order to manage example code and actual code, I would like to write example code in html side.
However because of Angular, it seems I have to write { to { and } to }.
Well, I can write escaped HTML characters, but is it possible to write { } then escape them automatically?
The text was updated successfully, but these errors were encountered:
There is a ngNonBindable directive available that can be used to avoid double curly braces to be compiled/bind.
<divngNonBindable>
This will show {{ double curly braces }} in HTML
</div>
Single curly braces
Sadly there is currently an issue on Angular repository about single curly braces that is throwing a compilation error even when using that same directive.
<divngNonBindable>
This will throw a compilation error for { single curly braces }
</div>
Workaround: remote files
The best workaround I found to avoid escaping characters is to keep the code snippets in remote files and use src property of the markdown component/directive to fetch it. That way you can just copy-paste your code and it won't get compiled/bind by Angular.
<divmarkdown[src]="'path/to/file.js'"></div>
You can look at the issue #40 for details on how to load external files if you're having trouble with it.
Thank you for resolving #98.
I really appreciate for your help. You saved my time a lot!
Let me ask one more thing.
Is it possible to escape the contents of three back-thrashes?
I would like to create a code example site with this module.
In order to manage
example code
andactual code
, I would like to writeexample code
in html side.However because of Angular, it seems I have to write
{
to{
and}
to}
.Well, I can write escaped HTML characters, but is it possible to write
{ }
then escape them automatically?The text was updated successfully, but these errors were encountered: