If you append custom elements in the linking phase I don’t think they will
ever be compiled since compilation is over once angular starts linking.
I assume you need to do this during the linking function because commandscould
be an expression stored in the scope somewhere (rather than always a
literal expression in the html).
In this case you will have to compile and link any elements you add to the
dom yourself by injecting the $compile service. Something like this:
var toolbar = angular.element("ui-rich-text-editor-toolbar");var buttonToAdd =
angular.element("<ui-rich-text-editor-toolbar-button
command='bold'>Bold</ui-rich-text-editor-toolbar-button>");
toolbar.append(buttonToAdd);
$compile(buttonToAdd)(scope);
--
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/groups/opt_out.