Last active
December 19, 2016 15:01
-
-
Save heidsoft/3e1843e20d57d0f75314ee3cf16ee737 to your computer and use it in GitHub Desktop.
angularjs $compile 使用
This file contains hidden or 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
| $("#dynamicContent").html( | |
| $compile( | |
| "<button ng-click='count = count + 1' ng-init='count=0'>Increment</button><span>count: {{count}} </span>" | |
| )(scope) | |
| ); |
Author
heidsoft
commented
Dec 19, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment