Okay
  Public Ticket #888625
Query regarding Xenon theme structure
Closed

Comments

  •  2
    Prahlad started the conversation

    Hello,

    I've purchased the Xenon theme for my Angular app, But I'm not able to add individiual controllers as well as module.

    The theme is consist of only one controller & modules are defined in app.js.

    So, when i add controller or module inside the tpls folder it doesn't allow to add (means it's not working).

    Can you please help me for this ASAP.

  • [deleted] replied

    Hi Prahlad,

    Controllers are added in 

    app/js/controllers.js so to define your controller add it to this file. And the template files to add in app.js:

    .state('app.my-custom-page', {
    url: '/my-custom-page',
    templateUrl: appHelper.templatePath('my-custom-page')
    })

    After that go to tpls/ folder and create file my-custom-page.html

    Just follow the structure defined in app/js/ directives.js and controllers.js and app.js 

  •  2
    Prahlad replied

    I understood & things are working now.

    Thanks Arlind for the kind response.


  • [deleted] replied

    Hi Prahlad,

    Thats great!

    If you like our theme, it would help us a lot if you could give us five star rating on themeforest from your Downloads tab, (if you don't know how, just open this link).

    A huge thank you from Laborator in advance and have a great week!