经常的几个报错

ionic serve can only be run in an Ionic project directory.

是因为没进到项目里面

还有一个关于$stateParams的详解

https://blog.csdn.net/viewyu12345/article/details/79131956

原文地址:https://www.cnblogs.com/yuanguliang/p/9242298.html