AngularJS/Ionic how to initialize a controller's code without rendering the view? -


i building app have number of controllers. i'm watching web socket message in chatcontroller connected inbox.html view. app starts on 'requests' page controller different. problem unless user has explicitly visited inbox.html view @ least once, web socket(socket.io) event isn't detected since code 'chatcontroller' hasn't been initialised. options have enabling functionality? somehow initialise code 'chatcontroller' app starts without user having visit screen.

thank you


Comments

Popular posts from this blog

ssh - Vagrant Windows - ssh_exchange_identification: read: Connection reset by peer -

gcc - Neither ld wrap nor LD_PRELOAD working to intercept system call -

maven - jacoco coverage per test setup -