Answer the question
In order to leave comments, you need to log in
How to run two controllers?
There is a routing on angular 1.2:
route
.when('/:lang/:page/:id/:attribute', {
template : '',
controller : lang
})
.when('/:lang/guide/:id', {
templateUrl : '/view/guide.html',
controller : guide
});
example.com/ru/guide/1
lang
and gudie
lang
. How can I set up routing so that both work?
Answer the question
In order to leave comments, you need to log in
can be done. But there is more of a conceptual problem here. How do you imagine it?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question