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
Description
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
Labels
No labels