ng-map is not compiling in angularJS -
i included directives such ngmap,nvd3 in ang
var app = angular.module('myapp', [ 'nvd3','ngmap']); angular.module('myapp'). controller('mainctrl', ['$scope', '$filter', '$compile', '$http', '$q', '$log', function($scope, $compile, $timeout, $http) { var template = '<div class= "chartsdiv">' + ' <div class="col"> <p class="graphtitle"> netspend on time </p> <nvd3 id = "chart3" options="netspendovertime_options" data="netspendovertime_data"></nvd3> </div>' + ' <div class="col"> <p class="graphtitle"> google map </p> <map center="43.07493,-89.381388" zoom="8"> </map> </div>' + ' </div>'; });
ularjs application.
in controller prepared 2 dashboards 1 related nvd3 , 1 related ngmap. while rendering browser nvd3 related dashboard displaying.ngmap releated dashboard not displaying.
sample code creating template is:
did add reference on header before angular.js ?
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=weather,visualization,panoramio"></script>
Comments
Post a Comment