Closed oliviercooper closed 9 years ago
Hi @oliviercooper -
Thank you for using famous-angular. Your issue has been in for a while and I hope you have worked it out. If not I suggest that you take this kind of question to a forum like Stackoverflow as this is not an issue with famous-angular.
Thank you,
Jordan
Hi,
I try to do a modal dialog by using css + famo.us-angular (I don't want to use boostrap ui and I like famo.us reactivity...). To do so I was trying the following architecture without success :
1) An HTML template with both the main window and the popup window fa-app class="full-screen" |-fa-surface | ||-fa-app modal-dialog style="width: 320px; height: 568px;" show='myData.modalShown' | |||-fa-header-footer-layout | ||||-fa-modifier | ||||-fa-modifier | ||||-fa-modifier |-fa-header-footer-layout ||-fa-modifier ||-fa-modifier ||-fa-modifier
By default, the fa-app modal-dialog is hidden. Each fa-modifier contains other fa tags.
2) Some CSS for main window and popup
3) A directive for modal-dialog (as restrict A ; replace false ; transclude false) with link function : -> Making the popup display animation in vanilla famo.us, and copying
outerHTML in the resulting directive rendering
And some code to manage display/hide popup
The popup animation to display it is ok, but there's no content inside. When shown, the chrome html console shows the following html :
nothing else... no trace of the fa-header-footer-layout subtemplate for the popup.
Any idea ?
Olivier