0 Replies Latest reply on Jul 18, 2016 10:28 PM by aniketbelsare

    Not able to Map URL in  jive hosted app using angularJS with it.

    aniketbelsare

      'use strict';

       

      angular

        .module('publicApp', [

       

          'ui.router',

          'ui.bootstrap'

        ])

        .config(function ($stateProvider, $urlRouterProvider) {

          $stateProvider.state('home', {

            url: '/',

            templateUrl:"views/main.html";

            },

            controller: 'MainCtrl',

            controllerAs: 'MainCtrl'

          })

        })    

       

      app.xml

      <Content type="html" view="myView"  href="app/index.html" preferred_height="600" />

      loaded my index.html file through app.xml and  included app.js(route file ) in index.html

       

       

      I want to create a jive hosted app using angularJs for frontend . this is my route file I  want to route to main.html . In my console address resolved is <jive-instance>/gadgets/main.html instead of <jive-instance>/resources/add-ons/../../app/views/main.html ..? how to resolve view to correct address.   Am I doing something wrong ..?