Displaying data from controller on custom dashboard.
I have created a custom dashboard, (just so i know how), it is displayed correctly and the controller seems to work, since i can activate an alert.
But when i try to display forexample a headline which i set in the controller, nothing appears..
My code:
Html
<umb-box>
<umb-box-content ng-controller="My.TestDashboard as vm">
<h3>{{vm.Headline}}</h3>
<p>This is just a test to see a working dashboard</p>
</umb-box-content>
</umb-box>
Js controller
angular.module("umbraco")
.controller("My.TestDashboard", function ($scope) {
var vm = this;
vm.Headline = "My Custom Testing Dashboard";
});
Displaying data from controller on custom dashboard.
I have created a custom dashboard, (just so i know how), it is displayed correctly and the controller seems to work, since i can activate an alert.
But when i try to display forexample a headline which i set in the controller, nothing appears..
My code:
Html
Js controller
is working on a reply...