Answer the question
In order to leave comments, you need to log in
How to refer to tab ( ng-click="tab = 1" ) in js file?
Actually, that's all. How to access tab's value in js file. For example, when you press the button tab = 1, and in the js file you need to write . How to do it? Or suggest another way.
ps I don't know if this is important, but the block with tabs is outside the block with the controller in which you need to use the value of tabs. if( tab === 1){...}
Answer the question
In order to leave comments, you need to log in
Events, in the rootScope, you can create a service and write values \u200b\u200bthere.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question