列表 第页
我有两个问题。如何传递参数给过滤功能。how to pass param to a filter function.比方说:在masterData项目|过滤器1:masterdata |过滤器2:outputFromfilter1,myparam |过滤器3:outputFromfilter2,myparam1,my...阅读全文
相当简单,但我想不出我需要谷歌的词。我如何引用任何元素调用控制器罗嗦功能?Fairly simple but I can't figure out the term I need to google.How do I reference whichever element is calling the contro...阅读全文
我遇到了OS X和Android之间的不同的行为:I am encountering a different behavior between OS X and Android:有一个弱函数富在我的共享库,我想在我的可执行文件中定义功能强大覆盖它。我希望被覆盖也影响到库里面的电话There is a weak f...阅读全文
我不知道我怎么能叫我的控制器具体取决于在菜单中选择该选项的功能。I was wondering how I can call a function in my controller depending on the option that is selected in a menu.例如,使用NG-点击,当单...阅读全文
我通过大量的数据循环。每个对象具有属性startTime和持续时间,这是为每个对象是唯一的。I'm looping through lots of data. Each object has a property startTime and duration, which is unique for each obj...阅读全文
我在使用下划线的去抖服务的方法。 I have a method in a service that uses underscore's debounce. 内该方法是在一个不同的服务的方法的调用。我想测试不同的服务被调用。Inside that method is a call to a method on a...阅读全文
这是我的AngularJS post.js :This is my AngularJS post.js:angular.module("PostPageApp", ["BaseApp"]).controller("MainCtrl", ["$http", "$window", "BaseService", fun...阅读全文
我有一个角度应用程序,我有表事件的日期,相应的事件描述的时间表。这是HTML源$ C $ C。 I have an angular application where I have a timeline with list event dates and the respective event descript...阅读全文
您好,当我运行开发模式(服务器咕噜声)https://github.com/kennethlynne/generator-angular-xl一切正常,但是当我在生产模式(咕噜版本)运行它,我得到一个`Hello when I run this project in Developer mode (grunt ser...阅读全文
在Android的我已经能够很容易忽略后退按钮的功能,但我的应用程序,我需要重写主页按钮。例如,用户在活动A ,当他presses home键, b活动启动。我试图做到以下几点,但失败了。 In android I have been able to override the functionality of bac...阅读全文
我想设立在Android上工作灯推送通知示例项目。当我启动了Android模拟器的应用程序,只有前两个按钮(isSubscribed和则isSupported)是可以点击的。另外两个按钮(订阅和退订)保持禁用状态。I am trying to set up the sample project for Worklig...阅读全文
我一直在寻找周围,但没有找到任何答案了这一点。我想要实现的一个EditText类似收件人字段中的ICS Gmail应用程序的构成画面中。I've been searching around but could not find any answers to this. What I'm trying to imple...阅读全文
我的问题很简单,我只是想传递一个控制器功能指令。在其他方面,我只是想打电话从一个指令控制器功能。 \r\r VAR的myapp = angular.module('MyApp的',[]);\r\rmyapp.controller('myCtrl',['$范围,$超时',函数($范围,$超时){\r \r $ sc...阅读全文
我有一个非常简单的服务和控制器试图从它那里得到一些信息,但我不断收到.methodName不是一个函数。 I have a very simple service and a controller attempting to get some information from it, but I keep getti...阅读全文
我试图单元测试与因果报应,和茉莉花的angularjs控制器。下面是我的测试套件: 描述('控制器',函数(){ 变量$范围,CTRL; beforeEach(模块('curriculumModule')); 描述(CreateCurriculumCtrl',函数(){ VAR mock...阅读全文
我有我的应用程序的主页的视频,当我启动它起着。当视频结束我再喜欢用一些CSS 3过渡到各地移动的页面。I have a video on the homepage of my app which plays when I launch it. When the video ends I'd then like t...阅读全文
HTML内容,Show href Value内容的js,$("body").on('click', 'button', function(){console.log($(this).attr("data-href"));});这版画...阅读全文
我所试图做的是在新窗口中打开局部视图,并调用打印功能,但问题是,局部视图打印功能后呈现,所以我总是得到一个空白页。我试着用 $超时的功能,但我得到了相同的结果。现在,我有这个,但是这是一个哈克解决方案,我不喜欢它: $ scope.print =功能(){ 的setTimeout(函数(){ 打印...阅读全文
我使用的NG-重复和生成力认为,李我有输入型控制,具有范围功能fn_btnClose。当我正在点击按钮,按钮的点击事件没有得到调用,而不是李的单击事件被炒鱿鱼内。 我做的JS提琴同样的事情,它是在那里工作,但在 我的code我没有找到哪里是problem.The工作小提琴链接 http://jsfiddle.ne...阅读全文
该指令具有隔离范围和scope属性正在以@过去了。这是该指令是如何调用: < DIV NG-的init =classForIcon ='vladClass'>< / DIV>< DIV NG-的init =textForIcon ='图标\\的文字'>< / DIV&G...阅读全文
我使用AngularJS的V1.2.0 RC2,想知道什么是向多个控制器提供常用功能的最佳方法。 I am using v1.2.0 rc2 of AngularJS and want to know what is the best method to provide common functionality to...阅读全文
我试图用我建立了一个资料库,返回解析为模板的内容的承诺找回我的指令模板。I am trying to retrieve my template for a directive using a repository I have built that returns a promise that resolves to...阅读全文
读取多个文章的范围,避免汤和引用的谷歌指南楼宇控制器我已经离开了一个亟待解决的问题。我应该如何引用我的注入我的控制器内的依赖呢? After reading several articles on avoiding scope soup and referencing the Google Guidelines fo...阅读全文
我创建了一个plunker这里: http://plnkr.co/edit/ zGqouwzxguef13lx48iP?p = preVIEW 当我点击在天视图,则什么也不会发生在UI的网格单元。我所期望的是,测试功能被执行和警报显示与文本测试,但是事实并非如此。这是怎么回事错在这里?多数民众赞成在UI网3.0最新版...阅读全文
我需要申请多的CSS规则HTML标签中的角表单模板。I need for apply multi css rule to html tag in angular form template.
我要创建一个调用在其链接服务的元素指令功能:I'm creating an element directive that calls a service in its link function:app.directive('depositList', ['depositService', function (de...阅读全文
我是新来的角js和已经到处找一个答案,为什么这是行不通的。I'm new to angular js and have been looking everywhere for an answer to why this isn't working.我有我的指示在这里:.directive('carrouselPr...阅读全文
我使用噶测试运行和茉莉花。我知道如何测试的scope.But功能在这样的情况下情况下,我该怎么做呢?I am using Karma test runner and Jasmine. I know how to test functions on the scope.But in case of a situatio...阅读全文
我有一个指令在我的模板之一,以下是该指令的code:I've got a directive in one of my templates, the following is the code of that directive:appDirectives.directive('map', function()...阅读全文
我对这个按钮,点击一个按钮,我调用一个函数例如I have a button on this button click I am calling a function e.g