Created
September 16, 2014 10:46
-
-
Save IamAdamJowett/944238e6c0826eed1a09 to your computer and use it in GitHub Desktop.
Dynamically add a directives in AngularJS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var table = angular.element(document.createElement('pc-table')); | |
var tableElement = $compile(table)($scope); | |
angular.element(elem.parent()).append(table); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment