Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Too many ng-if 's #8721

Closed
Closed
@binarykitchen

Description

@binarykitchen

For my app I want to add lots of meta tags like that (in the jade template):

        meta(property="og:type",        content="video.other",           data-ng-if="videomail.sent")
        meta(property="og:title",       content="{{videomail.subject}}", data-ng-if="videomail.sent")
        meta(property="og:url",         content="{{videomail.url}}",     data-ng-if="videomail.sent")

... and 20 more!

All of them should be shown if only one flag is set, namely videomail.sent.

I think defining data-ng-if="videomail.sent" for each line is somewhat cumbersome.

I wish there is a block element for the meta tags in the header. Something like that

head
        head-group(data-ng-if="videomail.sent)
            meta(property="og:type",        content="video.other")
            meta(property="og:title",       content="{{videomail.subject}}")
            meta(property="og:url",         content="{{videomail.url}}")

But there is no such tag. But maybe you know a better workaround for that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions