列表 第页
.STATE('tabs.map',{ 网址:'/地图/ {} LOCATION_ID, params:一个{ LOCATION_ID:{值:-1} }, 观点:{ 地图舌:{ templateUrl:'模板/ map.html', 控制器:'...阅读全文
的我要寻找一个伪code答案,或者概念性的答案,请。的编程数年之后,我从来没有创建一个接收函数参数,使得本方法的调用者自动获得访问无形属性的类方法。如果我尝试访问我的 my_app.controller(...)方法之外$范围,我得到一个错误,所以我知道这不是全球性的;如果我尝试从 my_app应用。$范围访问或角。$...阅读全文
我有两个问题。如何传递参数给过滤功能。how to pass param to a filter function.比方说:在masterData项目|过滤器1:masterdata |过滤器2:outputFromfilter1,myparam |过滤器3:outputFromfilter2,myparam1,my...阅读全文
gridview.setOnItemClickListener(新OnItemClickListener(){公共无效onItemClick(适配器视图父,视图V,INT位置,长的id){Toast.makeText(HelloGridView.this,+位置,Toast.LENGTH_SHORT).show();}...阅读全文
我使用科尔多瓦的inappbrowser和整合谷歌的OAuth2.0。一旦我得到授权code我做一个post请求让我的令牌。不管我怎么努力,我总是得到一个400错误与缺少所需的参数grant_type。我编码URI,我设置了正确的头,但无济于事...谁能帮助?I am using Cordova's inappbro...阅读全文
例如。在angularJS我可以用下面的结构:E.g. in angularJS I may use the following construction:myApp.factory('MyFactory', function(injectable) {return function(param) {this.sa...阅读全文
我目前正在试图混淆一系列库。我的基本库,其中包含几类,并使用类型参数的方法,是无法使用其他code,由于通过Proguard的混淆要删除的类型参数。消除混淆消除这些问题。我已经通过所有ProGuard的使用文档,示例和故障排除的阅读,但一直无法找到如何应对类型参数或ProGuard的方面剥离类型参数的任何文件。构造类型...阅读全文
给出一个自定义的类 org.example.app.MyClass实现Parcelable ,我想写一个名单,其中,MyClass的> 来一个包裹。我做的编组Given a custom class org.example.app.MyClass implements Parcelable, I want to...阅读全文
我的问题很简单,我只是想传递一个控制器功能指令。在其他方面,我只是想打电话从一个指令控制器功能。 \r\r VAR的myapp = angular.module('MyApp的',[]);\r\rmyapp.controller('myCtrl',['$范围,$超时',函数($范围,$超时){\r \r $ sc...阅读全文
我有一些标签。在每个选项卡的选择,一个特定的div应该得到与对应于每个标签和重装参数的特殊值进行初始化。如何能做到?下面是标签: < DIV NG控制器=visCtrl作为CTRL级=集装箱COL-SM-12> < DIV CLASS =BS-例如> < UL类...阅读全文
我在下面的教程这里和我坚持在从控制台插入各方......我不能运行流星蒙戈I'm following the tutorial here and am stuck at "inserting parties from the console"... I can't run "meteor mongo"下面是我的输出...阅读全文
$httpBackend.whenGET('/restpath/api/v1/books').respond({// some data}); 我收到以下错误Error: Unexpected request: GET /restpath/api/v1/booksExpected GET /restpath/api...阅读全文
我从我的控制器传递三个参数到工厂下面的方式。 I am passing three parameters from my controller to the factory following way. 在我的控制器,我试图通过三个参数ID,SDT和EDT。In my controller I am trying...阅读全文
我使用 Restangular 在我的项目和前面code行之有效检索阵列对象:I'm using Restangular in my project and earlier this code worked well for retrieving array of objects: var params = {na...阅读全文
我已经简化我的code到这一点:I've simplified my code down to this:bar阅读全文
我想实现它应该有多个参数的角度路线。这里是什么我想一个例子:I am trying to implement a angular route which should have multiple parameters. Here is an example of what I tried: .when('/myRo...阅读全文
我有 $ stateProvider定义以下状态 :$stateProvider.state("byTeams", {url : "/team/{id}/{year}", ...})$stateProvider.state("byPlayer", {url : "/player/{id}/{year}", ......阅读全文
我是新来Angularjs,我是跟随教程,但我得到了标题中的错误。 I am new to Angularjs and I was following a tutorial but I got the error in the title. HTML code:HTML code:
我试图用纳克级的角。我有返回基于我们发送它的参数类的功能。我怎样才能实现呢? I am trying to use ng-class of angular. I have a function which returns the class based on the parameters we send it. Ho...阅读全文
新来这里的角。我来自一个PHP和ASP的背景下,我们读到参数的方式是这样的:New to Angular here. I come from a PHP and ASP background, where the way we read parameters is like this:
在我们的应用角度,我们必须处理包含一个点的ID。例如: =书{ ID:123.456} 我们必须使用这些标识作为URL参数的问题。一切运作良好,如果出现导航到角,即点击调用 $ state.go的链接('bookDetails',{BOOKID:book.id}); 。但重新加载页面时,事情不工作不能得到/book...阅读全文
如果我的网址 http://www.something.com/foo/bar/index.html?color=yellow&animal=rat ,它好像$ location.path()将返回富/酒吧/ index.html的 $ location.absUrl()将返回 http://www.somethi...阅读全文
在首先用角Xeditable我的申请,我遇到了一个问题,试图找出如何保存的X可编辑的变化这是通过NG-repeat循环访问的对象。When first using Angular-Xeditable with my application, I ran into a problem trying to figure...阅读全文
我有以下链接。Clicking this adds ?test=true to the query params.有没有使用UI-SREF属性只是改变查询参数无需重新加载页面或引导到另一个函数的方法?Is there a way to use the ui-sref att...阅读全文
我试图建立我的路由这样I tried to set up my routing like this...url: '/view/:inboxId?'...但角将抛出这个错误:but Angular would throw this error:Error: Invalid parameter name ''...阅读全文
需要你的帮助。我想用我的自定义指令,像这样的参数:Need your help. I would like to use my custom directive with parameters like this:
阅读全文
我创建一个导航,在那里当上了活跃的链接,进给负载,但使用不同的搜索词。 I am creating a navigation, where when on the active 'link', a feed loads but with a different searched term. 基本上,所有链路是相同的...阅读全文
UI-路由器解析条目使用时$ state.go或UI-SREF使用可选参数{}当重装两次,可选参数不填充。UI-Router resolve entries are reloading twice when using $state.go or ui-sref when using an optional {par...阅读全文
我想获得的使用AngularJS特定的URL参数的值。然后,我想一个特定的值分配给特定的文本框。I'd like to get the value of specific url parameters using AngularJS. I then want to assign a specific value t...阅读全文
尝试一个简单的HTML打字稿应用程序,并不能让过去试图Angularjs集成到解决方案时在主题指出这个错误。基本上,我有一个简单的index.html页面如下: <!DOCTYPE HTML>< HTML LANG =ENNG-应用>< HEAD> <间的charset...阅读全文
我有一个角应用,在那里我有定义为 sumCompletedCredits 自定义过滤器。这里是调用的HTML:I have an angular app where i have a custom filter defined as sumCompletedCredits. Here is the html of t...阅读全文
继this问题,我试过(naievely)要做到这一点: 量角器测试/功能/量角器-conf.js --params.test_set = dev_test 和量角器-conf.js: exports.config = { // ... 规格:[browser.params.test_set +'/ *功能'...阅读全文
我要创建它要求根据参数后端的服务。这code没有工作,但我希望它显示我想达到什么样的:I want to create a service which calls the backend depending on parameters. This code does not work, but I hope it s...阅读全文
我曾尝试通过AngularJS变量作为参数值里面的onclick()调用JavaScript函数。任何人都可以指导我该怎么办呢? 我的code: < DIV的onclick =deleteArrival({{filterList.id}})级=表图标deleteIcon> {{filterList.i...阅读全文
我使用温泉UI和AngularJS,并试图通过对温泉导航的价值,但它不工作。可错了呢?I'm using Onsen UI and AngularJS, and trying to pass a value on Onsen navigation , but it is not working. What can b...阅读全文
我在URL中的动态值PARAMS和我想要得到它,当onload事件中使用的控制器但我不知道如何应对 $ route.current.params I have a dynamic value params in url and I want to get it and use in controller when...阅读全文
我有一个角度的服务,看起来是这样的。在这里,我想提出一个POST请求。 I have an angular service that looks like this. Here i am making a POST request. .factory("Apples", function ($resource, H...阅读全文
因此考虑从我angularUI路由设置下面的片段。我导航到该路由/分类/管理/ 4 /细节(例如)。我希望'类'的相关负责加载之前得到解决,而且的确是我可以把一个断点,从类别服务返回类别决心函数内,看到该类别已归还的程度。现在把另一个断点控制器本身,我可以看到类别永远是不确定的里面。它不是由UI路由器注入。 任何人...阅读全文