Cannot pass data with service in angular2
问题 PS: When I talk to my colleague, they told me to get Role's right with once request, if it is not authenticated then reject, else return the data to frond-end. But, I got stuck in use Angular2's Guard. Apps do: Access my routes, and Guard prevent it, the Guard send a request to server to check its auth. Request the server , when server return statue:true and data:[somedatas] then set data with module's dataService , and resolve true for canActivate. Init the target component, in constructor ,