Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am trying to use an angular yandex map in my umbraco custom section.
var app = angular.module("umbraco", ['yaMap']);
When I use this I get error: Argument 'Umbraco.MainController' is not a function, got undefined.
I tried to replace it on:
var app = angular.module("umbraco"); app.requires.push(['yaMap']);
But then I get this error:
Uncaught Error: Argument 'fn' is not a function, got string from yaMapcb @ angular.min.js?cdv=1642385027:17xa @ angular.min.js?cdv=1642385027:17Hb @ angular.min.js?cdv=1642385027:25d @ angular.min.js?cdv=1642385027:27(anonymous function) @ angular.min.js?cdv=1642385027:26n @ angular.min.js?cdv=1642385027:6e @ angular.min.js?cdv=1642385027:25(anonymous function) @ angular.min.js?cdv=1642385027:26n @ angular.min.js?cdv=1642385027:6e @ angular.min.js?cdv=1642385027:25yb @ angular.min.js?cdv=1642385027:30c @ angular.min.js?cdv=1642385027:16xb @ angular.min.js?cdv=1642385027:16(anonymous function) @ Application?umb__rnd=db52a62:47x.Callbacks.l @ jquery.min.js?cdv=1642385027:4x.Callbacks.c.fireWith @ jquery.min.js?cdv=1642385027:4x.extend.ready @ jquery.min.js?cdv=1642385027:4S @ jquery.min.js?cdv=1642385027:4
My package.manifest:
{ propertyEditors: [ { alias: "YandexMapAngular.YandexMap", name: "Yandex Map",isParameterEditor: true, editor: { view: "~/App_Plugins/YandexMap/YandexMap.html" } } ], javascript: [ "~/App_Plugins/yandex-angular/ya-map-2.1.min.js", "~/App_Plugins/YandexMap/YandexMap.controller.js", "~/App_Plugins/YandexMap/YandexMap.resources.js", ] }
And html:
<div style="width:600px;height:400px;" ya-map ng-model="geoObjects" ya-properties="mapProperties" ya-select-index="selectIndex"></div>
How to fix it?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Use Angular-Yandex maps in Umbraco 7
I am trying to use an angular yandex map in my umbraco custom section.
When I use this I get error: Argument 'Umbraco.MainController' is not a function, got undefined.
I tried to replace it on:
But then I get this error:
Uncaught Error: Argument 'fn' is not a function, got string from yaMapcb @ angular.min.js?cdv=1642385027:17xa @ angular.min.js?cdv=1642385027:17Hb @ angular.min.js?cdv=1642385027:25d @ angular.min.js?cdv=1642385027:27(anonymous function) @ angular.min.js?cdv=1642385027:26n @ angular.min.js?cdv=1642385027:6e @ angular.min.js?cdv=1642385027:25(anonymous function) @ angular.min.js?cdv=1642385027:26n @ angular.min.js?cdv=1642385027:6e @ angular.min.js?cdv=1642385027:25yb @ angular.min.js?cdv=1642385027:30c @ angular.min.js?cdv=1642385027:16xb @ angular.min.js?cdv=1642385027:16(anonymous function) @ Application?umb__rnd=db52a62:47x.Callbacks.l @ jquery.min.js?cdv=1642385027:4x.Callbacks.c.fireWith @ jquery.min.js?cdv=1642385027:4x.extend.ready @ jquery.min.js?cdv=1642385027:4S @ jquery.min.js?cdv=1642385027:4
My package.manifest:
And html:
How to fix it?
is working on a reply...