Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Simon Yohannes 58 posts 188 karma points
    Nov 25, 2017 @ 15:30
    Simon Yohannes
    0

    trouble console.logging values from custom property editor controller

    using v7.7.6 i'm in the property editor controller

    angular.module("umbraco")
    .controller("My.MarkdownEditorController",
    function ($scope,assetsService) {
        console.log("test");
        $scope.value.one = "value one";
    });
    

    inside the controller function, the first line where the console log is being made doesn't appear in the console (maybe console is being cleared by umbraco before the property editors load).

    the second line causes an error too, which can't be viewed in the console since it's cleared. why would this cause an error? i'm simply setting the value for a complex editor. setting $scope.value doesn't cause an error but setting $scope.value.one does.

    appreciate any help

  • Ben Palmer 170 posts 816 karma points c-trib
    Nov 25, 2017 @ 17:36
    Ben Palmer
    0

    Hi Simon,

    I'd expect there to be an error in your console - it's difficult to debug without knowing the specific error.

    Could you also post your html code and your manifest file that you're using alongside this?

Please Sign in or register to post replies

Write your reply to:

Draft