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

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -