Angular自动完成的参数化服务器url
Parametrized server url for Angular autocomplete
我想使用一个自动完成字段
<angucomplete-alt id="members"
placeholder="Search members"
pause="400"
selected-object="testObj"
remote-url="http://myserver.com/api/user/find?s="
remote-url-data-field="results"
title-field="firstName,surname"
description-field="email"
image-field="profilePic"
input-class="form-control form-control-small"/>
但我有几个环境,我必须使用它开发,测试等。
我想知道如何添加远程url
remote-url="http://myserver.com/api/user/find?s="
作为变量…因此根据环境,我可能有
http://my_DEV_server.com/api/user/find?s= http://my_TEST_server.com/api/user/find?s=既然这是不同的,然后服务器端渲染在哪里它已经足够/用户/发现?S,如何通过客户端渲染来解决这个问题。
谢谢
成功了:
<div class="padded-row">
<div angucomplete-alt id="searchCall" placeholder="Search calls"
pause="500" selected-object="selectedCall"
remote-url="/export-proposals/rest/calls"
remote-url-data-field="call" title-field="name"
remote-url-request-formatter="remoteUrlRequestFn"
description-field="callIdentifier" minlength="3"
input-class="form-control form-control-small" match-class="highlight">
</div>
</div>
相关文章:
- 如何使用skip参数使用angular ui引导进行服务器端分页
- 使用useMasterKey参数分析每个服务器查询
- 使用新参数通过服务器端处理重新绘制引导数据表
- 如何使用ExtJs将参数发送到服务器
- Ajax's的数据参数未发送到服务器
- 服务器不读取科尔多瓦文件传输选项参数
- 从插件向Datatables添加额外的服务器参数
- 添加其他参数以使用fin上传器发送到服务器
- 无法使用angularjs$http请求将参数发送到服务器操作方法
- 将jQuery参数发送到服务器端并创建输出文本文件
- 将参数传递到JavaScript的安全方式,无需服务器端脚本
- 数据表1.8.0添加服务器参数无效
- 覆盖 JQGrid 参数在服务器端找到
- 如何通过角度服务器路由发送 Ajax 参数
- 当我尝试在 couchbase nodejs 服务器上运行简单的测试时,我收到“不正确的参数”错误
- 将参数从网页传递到服务器(烧瓶)
- 如何使用 ajax 调用带有参数(对象)的服务器端方法,其中 url 具有查询参数
- React 服务器端渲染 - 如何使用传入的 :p roductId 参数从服务器渲染
- Java 服务器页面.如何将参数从一个 JSP 页发送到另一个 JSP 页
- 数据表服务器端添加带参数的列