angular-google-maps icon indicating copy to clipboard operation
angular-google-maps copied to clipboard

ngSrc not working inside windows directive

Open rdelafuente opened this issue 12 years ago • 2 comments

When using <img ng-src="{{image_url}}" /> inside windows directive the images don't show.

Plunker: http://plnkr.co/edit/wGkOznRAaVasFCOJTGhT?p=preview (master & develop branch)

Is this an expected behavior? Any workaround?

ngSrc works fine when using window directive + templateUrl, but templateUrl doesn't work on windows directive, see: #410

rdelafuente avatar May 17 '14 00:05 rdelafuente

yes it is expected behavior currently. In order to make the binding work correctly that window will need another controller to bind to. Please see the examples or issue on getting button clicks to work inside a window. It is the same issue / approach . In the example any of the windows with a button in it where an window.alert is rendered deals with this.

nmccready avatar May 20 '14 15:05 nmccready

Can I use $rootScope to send data to functions in another controller?

phaeton2040 avatar Jun 11 '14 07:06 phaeton2040