Skip to content
This repository has been archived by the owner on Apr 6, 2019. It is now read-only.

once-if #28

Open
stanwz opened this issue Oct 17, 2014 · 3 comments
Open

once-if #28

stanwz opened this issue Oct 17, 2014 · 3 comments

Comments

@stanwz
Copy link

stanwz commented Oct 17, 2014

Should use transclusion instead of letting child elements/directive compiled/rendered.
Had several tests, in the following situation:
<div once-if="a" my-directive></div>
<div once-if="!a" my-directive><div>
both directive still get compiled even though their priority is lower. I suppose the the $element.remove() is queued after the compilation of other directives

@stanwz stanwz closed this as completed Oct 17, 2014
@stanwz stanwz reopened this Oct 17, 2014
@GoceBogdanovski
Copy link

try once-wait-for="param1"

i wold like to ask is there option like this once-wait-for="param1, param2, etc"?

@ntvsx193
Copy link

+1
I see compiled directive child too..

@atoftegaard
Copy link

Can confirm, this is still an issue. Today it works more like onceShow - but still not even quite.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants