Hi,

I'm doing something slightly unusual, essentially I'm taking a list of 
directive names and building up an html string from them which I then 
compile.  When I click a button, I get a new list of directives and the 
screen updates to show them.  I'd like to animate this transition if 
possible.

My code is pretty similar to:

 while (element[0].firstChild) {
                            element[0].removeChild(element[0].firstChild);
                        }

                        var controlHtml = _.reduce(scope.page.controls, 
(html, control: any) => {
                            html = html + '<div data-' + control.type + 
'=""></div>';
                            return html;
                        }, '');

                        element.append(controlHtml);
                        $compile(element.contents())(scope);


How might I use ng-animate to make this look smoother?

Thanks!
Matt

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to