Comments 2Prahlad started the conversationSeptember 12, 2016 at 12:32pmHello,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] repliedSeptember 15, 2016 at 12:49pmHi 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.htmlJust follow the structure defined in app/js/ directives.js and controllers.js and app.js 2Prahlad repliedSeptember 19, 2016 at 9:51amI understood & things are working now.Thanks Arlind for the kind response.[deleted] repliedSeptember 19, 2016 at 11:26amHi 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! Sign in to reply ...
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.
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:
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
I understood & things are working now.
Thanks Arlind for the kind response.
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!