如何访问令牌进入strongloop以离子framwork令牌、离子、strongloop、framwork

2023-09-14 00:27:29 作者:彼岸雨露

您好,我在离子框架工作的新用户。我的问题是另一个用户使用stongloop框架创建/构建的API。他们还利用访问令牌进入strongloop。但问题是,如何设置访问令牌成离子框架的工作通过API获取数据到strongloop。

如何设置离子框架的工作记号。

请帮助我,我是一个新用户。谢谢,

解决方案   

离子是发展前端框架母语的使用感和萨斯在混合HTML5移动应用的 AngularJS

这意味着你可以使用回送AngularJS SDK用于Web客户端应用程序。

生成使用LB-ng的命令angularjs $资源服务包含生成的文件在你的项目中离子

请参阅 AngularJS SDK文档。那你可能会改变的唯一事情就是'urlBase生成的文件里面的变量。添加网址到您的API在这里或动态分配(请参阅文档如何做到这一点)。

科学家开创了测量细胞中电信号的新方法

如果您在安装正确的一切,SDK将使用LoopbackJS模型时,需要约令牌照顾。

Hello I am a new user in ionic frame work. My question is another user use the stongloop framework for creating/build the apis. they also use the access token into the strongloop. But problem is how to set the access token into the ionic frame work for fetching the data by api into the strongloop.

How to set the token in ionic frame work.

Please help me i am a new user. Thanks,

解决方案

Ionic is a front-end framework for developing native-feeling hybrid mobile apps in HTML5 using Sass and AngularJS.

which means that you can use Loopback AngularJS SDK as for web client application.

Generate angularjs $resource services using lb-ng command Include generated file in your ionic project

See detailed instructions in AngularJS SDK docs. The only thing that you will probably have to change is 'urlBase' variable inside generated file. Add URL to your API here, or assign it dynamically (see docs how to do it).

If you setup everything correctly, SDK will take care about tokens when using LoopbackJS models.