R
R
RahaQa2014-12-22 09:59:32
css
RahaQa, 2014-12-22 09:59:32

How to make multi-design support for an AngularJS application?

Good afternoon.
I wanted to know if there is such a library that expands and simplifies support, namely the speed of developing an interface theme for an application. That is, to be able to create themes (just HTML/CSS) for an AngularJS-based application, such as WordPress, Joomla, etc. So that the user can change the theme in his panel.
Poke me with your nose please!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Romanov, 2014-12-22
@Serhioromano

I wanted to know if there is such a library that expands and simplifies support

Depending on the chosen library, there will be a solution. I personally use the ng-herf directive
<link rel="stylesheet" ng-href="themes/{{app.theme}}/theme.css">
<link rel="stylesheet" ng-href="themes/{{app.theme}}/style.css">

I also have a service in the form of a value.
app.value('app', {
  theme:  'cosmo',
  layout: 'default'
});

And if you need to overload the topic, I just assign somewhere in the method
app.theme = 'new';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question