我得到了错误,但只有有时:
The transition has been superseded by a different transition
我正在使用angular V1.6.9
和ui-router V1.0.16
这是我的代码:
var ws = new websocket("ws:/*********")
ws.onmessage = function(message)
{
if(message)
{
if(message.type=="weather")
{
$state.go("Index.weather",{weatherObj:message});
}
if(message.type=="temperature")
{
$state.go("Index.temperature",{tempObj:message});
}
if(message.type=="humidity")
{
$state.go("Index.humidity",{humObj:message});
}
if(message.type=="rain")
{
$state.go("Index.rain",{rainObj:message});
}
}
}