ng-click won't work with dynamic includes

angularjs, angularjs-ng-click, angularjs-ng-include, javascript

Solution

You have to add the "()" in the ng-click

'<button ng-click="onClick()">Click</button>' +

See : http://jsfiddle.net/8Bf8m/22/

Problem

This fiddle demonstrates some code where I lazily add a partial with it's own controller. Everything works fine, but for some reason my `ng-click` event just won't fire. Any idea what I'm doing wrong?

Original source