Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Get options from scope rather than parse html-embedded json string #77

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/angular-google-maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,8 @@
zoom: "=zoom", // required
refresh: "&refresh", // optional
windows: "=windows", // optional
events: "=events"
events: "=events",
options: "="
},
controller: controller,
link: function (scope, element, attrs, ctrl) {
Expand All @@ -363,7 +364,7 @@
// Parse options
var opts = {options: {}};
if (attrs.options) {
opts.options = angular.fromJson(attrs.options);
opts.options = scope.options;
}

// Create our model
Expand Down