Skip to content

idea: add an option for angular compile at runtime #106

@figuerres

Description

@figuerres

not sure if this would over complicate things but here goes:
look at the plunker code refered to here:
Question about dynamic elements

and make an optional attribute / directive or setting that would run the html thru the angular compiler and then put that in the page. then markup like <a routerLink="" could be used in the markdown / html and they will work with angular.
an app could opt in to use it if wanted or not.

the issue i have had with this is that if the html is not 100% valid to the angular compiler it fails to render and i have not found a way to catch the error and tell the user about it.
it seems to all happen in the core where i can't catch it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions