Copied to clipboard

Flag this post as spam?

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


  • Manish Prajapati 4 posts 34 karma points
    Aug 10, 2020 @ 11:15
    Manish Prajapati
    0

    How to add templateUrl for custom dashboard directive?

    Hi All,

    I have created custom plugin in v8 for the custom dashboard and which is working fine. Now, I have create directive and use into the plugin which I had created. If I define inline template in directive then it works fine. But the problem is that when I define my template in a separate html file and add the file path in templateUrl so I am getting 404. In package.manifest, how to add the directive template url "section-create.directive.html"?

    {
    "dashboards": [
    {
      "alias": "My Section",
      "sections": [ "content" ],
      "weight": 4,
      "view": "~/App_Plugins/Section/section.html"
    }
    ],
    "javascript": [
    "~/App_Plugins/Section/section.controller.js",
    "~/App_Plugins/Section/section-create.directive.js",
      ],
    "css": [
    "~/App_Plugins/Section/section.css
    ]
    }
    
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies