V
V
vohaha2014-10-18 19:10:47
JavaScript
vohaha, 2014-10-18 19:10:47

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

1 answer(s)
R
Roman Zhak, 2014-10-18
@romanzhak

Events, in the rootScope, you can create a service and write values ​​\u200b\u200bthere.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question