angular 初体验 component 中调用 service时,注意参数匹配 service中function的返回值类型注意是否为数组类型. 原有的demo 实际代码中漏写了 [], 导致的错误