Hi
I am trying to locate an html file used in my JavaScript directive for a component.
the file i am trying to locate, is located at component/mycomponent/plugin/default/pages/myfile.html
i tried this code below it isn't working.
// DIRECTIVES
mySearchApp.directive("frameList", function() {
return {
restrict: 'E',
templateUrl: ossn_plugin_view('pages/frameList.html'),
replace: true,
scope: {
frameItem: "=",
frameFrameUrl: "@",
selectframeFunction: "&"
}
}
});
note this javascript file has been added via
ossn_extend_view('js/opensource.socialnetwork', 'js/directives');
and it is working only the html file location is my problem.
Any help is appreciated.
[Topic is Close]
Used this
// DIRECTIVES
mySearchApp.directive("frameList", function() {
return {
restrict: 'E',
templateUrl: <?php echo ossn_site_url(); ?>components/component-name/plugins/default/pages/frameList.html',
replace: true,
scope: {
frameItem: "=",
frameFrameUrl: "@",
selectframeFunction: "&"
}
}
});
Problem Solved
Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.
$199 (Life Time)