![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
AngularJS
文章平均质量分 64
SalmonellaVaccine
这个作者很懒,什么都没留下…
展开
-
获取当前URL
获取部分URL:$location.url();$location.path();转载 2014-09-04 05:15:22 · 923 阅读 · 0 评论 -
How to define multiple controllers for one view in angularJS?
http://stackoverflow.com/questions/19699815/how-to-define-multiple-controllers-for-one-view-in-angularjsHow about making imageController the parent: ng-controller="imageController"> ng-转载 2014-08-09 02:34:04 · 624 阅读 · 0 评论 -
Restart my Phonegap app programmatically
I'm not sure if you still need an answer to this, but this might help someone. I encountered the same problem with PhoneGap running on Android 3. I solved it by replacing this line:location.reload(t转载 2014-09-04 05:42:35 · 1047 阅读 · 0 评论 -
AngularJS – Conditional Display using ng-show / ng-hide, ng-if, ng-include, ng-switch
Hiding or showing parts of a DOM based on some conditions is a common requirement. AngularJS has four different directives (ng-show / ng-hide, ng-if, ng-include, ng-switch), which are used to condit转载 2014-08-21 07:01:53 · 1948 阅读 · 0 评论 -
理解$watch ,$apply 和 $digest --- 理解数据绑定过程
原文地址:http://angular-tips.com/blog/2013/08/watch-how-the-apply-runs-a-digest/注这篇博文主要是写给新手的,是给那些刚刚开始接触Angular,并且想了解数据帮定是如何工作的人。如果你已经对Angular比较了解了,那强烈建议你直接去阅读源代码。Angular用户都想知道数据绑定是怎么实现的。你可能会看转载 2014-08-07 05:06:59 · 732 阅读 · 0 评论 -
多个view的AngularJS App中socket.io在页面刷新后不能接收消息
最近在通过socket.io来实时更新ding原创 2014-08-07 02:14:25 · 1863 阅读 · 0 评论 -
修改AngularJS中的$http cache中的数据
//Code to check and parse $http cachevar $httpDefaultCache = $cacheFactory.get('$http');var cachedJobs = $httpDefaultCache.get('data/jobs.json');var dataarray = JSON.parse(cachedJobs[1]);v原创 2014-07-31 07:59:28 · 1603 阅读 · 0 评论 -
Detect leaving a page in AngularJS
Actually it is using angular-ui.http://stackoverflow.com/questions/16635381/angularjs-ui-route-get-previous-state转载 2014-08-06 03:24:54 · 917 阅读 · 0 评论 -
Power up Angular's $http service with caching
https://coderwall.com/p/40axlq转载 2014-07-31 05:33:46 · 893 阅读 · 0 评论 -
More Responsive Single-Page Applications With AngularJS & Socket.IO: Creating the Library
http://code.tutsplus.com/tutorials/more-responsive-single-page-applications-with-angularjs-socketio-creating-the-library--cms-21738转载 2014-07-30 01:38:07 · 1072 阅读 · 0 评论 -
Angularjs accessing methods in another factory/service
http://stackoverflow.com/questions/15872550/angularjs-accessing-methods-in-another-factoryQuestion:转载 2014-07-29 00:04:40 · 587 阅读 · 0 评论 -
深入理解ANGULARUI路由_UI-ROUTER
http://blog.eisneim.com/articles/dive_deep_into_ui-router.htmlAngularJS不需要任何第三方库,利用自身集成的各个模块便可开发出功能齐全的web应用,不过活跃的AngularJS社区也开发了很多能够最大限度强化web应用的编程库。本文带读者了解专业开发使用的模块AngularUI中的ui-路由(ui-router)。转载 2014-09-05 04:43:52 · 2263 阅读 · 0 评论 -
AngularJS Socket.IO 另一种使用方式
http://morlay.tla42.org/coding/2013/03/01/AngularJS-Socket.IO/转载 2014-07-30 04:13:17 · 4107 阅读 · 0 评论 -
关于cordova中的文件路径
用Phonegap + cordova + angularJS + ionic做Android App。原创 2014-08-09 05:53:57 · 3665 阅读 · 0 评论 -
Angular框架中控制css样式
http://blog.csdn.net/u011649436/article/details/12744475 Angular中控制样式这话题在之前一篇文章里曾涉及:http://blog.csdn.net/u011649436/article/details/12249457 现在决定单独拿出来讨论一下。 开/关某个样式是前端编程中一转载 2014-08-18 12:06:59 · 2814 阅读 · 0 评论 -
Using Resolve In AngularJS Routes
http://odetocode.com/blogs/scott/archive/2014/05/20/using-resolve-in-angularjs-routes.aspxIn a previous post about testing I mentioned that route resolves can make authoring unit tests for a转载 2014-08-28 03:01:33 · 863 阅读 · 0 评论 -
Ionic Framework, Angularjs & PhoneGap Build- The Awesome Threesome!
http://thejackalofjavascript.com/ionic-angularjs-and-phonegap-build/This is a getting started post on Ionic Framework & deploying the starter template to PhoneGap Build.A more advance post o转载 2014-08-13 06:38:07 · 2507 阅读 · 0 评论 -
AngularJS $resource举例
http://stackoverflow.com/questions/15466427/using-angularjs-resource-to-get-dataangular.module('upe.services', ['ngResource']). factory('Profileslst', function($resource){ return $resour转载 2014-08-13 06:35:48 · 961 阅读 · 0 评论 -
Angular新手容易碰到的坑
http://www.ngnice.com/posts/2c8208220edb94在Angular群里回答新手问题一段时间了,有一些Angular方面的坑留在这里备查,希望能对各位有所帮助。这个文章将来会随时更新,不会单独开新章,欢迎各位订阅。Q1. 错在哪里?如果你这么写过,会发现这个位置啥也没有加载出来,那么,错在哪里呢?错在ng-include需要的是一个变量,转载 2014-08-13 06:29:51 · 1601 阅读 · 1 评论 -
AngularJS Cordova插件介绍
http://blog.csdn.net/offbye/article/details/38398181 ngCordova是在Cordova Api基础上封装的一系列开源的AngularJs服务和扩展,让开发者可以方便的在HybridApp开发中调用设备能力,即可以在AngularJs代码中访问设备能力Api。 根据我的经验,在cordova插件的su转载 2014-08-13 06:20:37 · 2079 阅读 · 0 评论 -
AngularJS中ng-include随屏幕宽度改变实例
用到了matchmedia-ng这个插件(https://github.com/AnalogJ/matchmedia-ng)原创 2014-08-13 00:31:06 · 3071 阅读 · 0 评论 -
AngularJS $q学习:轮询图表数据
http://wcp1231.logdown.com/posts/165232-angularjs-q-poll-chart-data最近在做的项目中使用到了AngularJS,就做一个AngularJS的学习笔记。这次的内容是AngularJS的$q:提供了异步回调管理的服务。起因在项目中要做一个实时数据的图表展示,需要在页面上轮询请求后台数据并显示在图表中。转载 2014-08-21 23:54:30 · 2524 阅读 · 0 评论 -
在AngularJS中使用$q同步读取服务器数据
http://htmln.com/2013/12/%E5%9C%A8angularjs%E4%B8%AD%E4%BD%BF%E7%94%A8q%E5%90%8C%E6%AD%A5%E8%AF%BB%E5%8F%96%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%95%B0%E6%8D%AE/今天在写AngularJS Service,然后希望在Controller中使转载 2014-08-22 00:27:49 · 1136 阅读 · 0 评论 -
Using AngularJS Promises
http://liamkaufman.com/blog/2013/09/09/using-angularjs-promises/In my previous article I discussed the benefits of using dependency injection to make code more testable and modular. In this ar转载 2014-09-06 05:34:33 · 627 阅读 · 0 评论 -
深度理解依赖注入(Dependence Injection)
http://www.cnblogs.com/xingyukun/archive/2007/10/20/931331.html前面的话:提到依赖注入,大家都会想到老马那篇经典的文章。其实,本文就是相当于对那篇文章的解读。所以,如果您对原文已经有了非常深刻的理解,完全不需要再看此文;但是,如果您和笔者一样,以前曾经看过,似乎看懂了,但似乎又没抓到什么要领,不妨看看笔者这个解读,也许对转载 2014-08-02 08:28:00 · 638 阅读 · 0 评论 -
Angular-ui Reload Page
Because it is angular-ui, so $route.reload() will not work.转载 2014-08-02 02:06:27 · 996 阅读 · 0 评论 -
Let's Make an AngularJS Custom Directive
http://onsenui.io/blog/lets-make-an-angularjs-custom-directive/Hello, this is Ohto from the Onsen UI Team.Today, we are going to create an AngularJS custom directive. This is a simple dire转载 2014-07-25 01:06:27 · 861 阅读 · 0 评论 -
How to call a service function in AngularJS ng-click
http://stackoverflow.com/questions/20054028/how-to-call-a-service-function-in-angularjs-ng-click-or-ng-changeFor example, most services relating to reusable view states I write are simply a se转载 2014-07-20 04:35:34 · 952 阅读 · 0 评论 -
Change Image Style on Click in AngularJS
http://www.ecofic.com/about/blog/conditionally-apply-a-css-class-with-angularjs<div ng-repeat="team in teams" ng-class="{'checkedClass': team.isChecked, 'uncheckedClass': !t转载 2014-07-18 23:45:17 · 715 阅读 · 0 评论 -
Use angular-css-injector to inject CSS into Angular templates
The angular-css-injector service is from:https://github.com/Yappli/angular-css-injector原创 2014-07-17 23:37:13 · 2697 阅读 · 0 评论 -
AngularJS中的$routeProvider
http://www.cnblogs.com/koukabatsugun/p/3445072.html来源:http://docs.angularjs.org/api/ngRoute.$routeProvider有省略。$routeProviderngRoute模块中的服务描述用于配置路由示例配置与ngRoute的使用参见转载 2014-07-17 00:47:17 · 1369 阅读 · 0 评论 -
在本文中让我们来逐步发掘angular为什么如此火
http://www.cnblogs.com/whitewolf/p/angularjs-start.html Angular.js 是一个MV*(Model-View-Whatever,不管是MVC或者MVVM,统归MDV(model Drive View))JavaScript框架,其是Google推出的SPA(single-page-application)应用框架,其转载 2014-07-17 00:43:23 · 986 阅读 · 1 评论 -
一步一步学习 AngularJS by Wenzhixin
一步一步学习 AngularJS(一)一步一步学习 AngularJS(二)一步一步学习 AngularJS(三)一步一步学习 AngularJS(四)一步一步学习 AngularJS(五)一步一步学习 AngularJS(六)一步一步学习 AngularJS(七)一步一步学习 AngularJS(八)转载 2014-07-17 00:33:45 · 1238 阅读 · 0 评论 -
angularJs项目实战
http://angularjs.cn/Uadmlm09-23 02:45 angularJs项目实战!04:angularjs的性能问题09-15 08:07 angularJs项目实战!03:angularjs与其他类库的协作08-29 04:21 angularJs项目实战!02:前端的页面分解与组装08-12 00:12 作为面试官招聘前端开发人员的提问准备转载 2014-07-17 00:44:38 · 2184 阅读 · 0 评论 -
深入理解 AngularJS 的 Scope
http://www.lovelucy.info/understanding-scopes-in-angularjs.htmlJavaScript 的原型继承就是奇葩。之前在 V2EX 上看到讨论说,不会 OOP 的 JavaScript 的程序员就是野生程序员。看来我是属于野生的。一、遇到的问题问题发生在使用 Angul转载 2014-07-17 00:38:39 · 680 阅读 · 0 评论 -
Lazy Loading CSS and JS files
AngularJS : conditionally rendering css in html head转载 2014-07-17 00:50:16 · 699 阅读 · 0 评论 -
AngularJS环境配置
具体配置流程参见:http://www.ituring.com.cn/article/13473转载 2014-07-06 14:43:55 · 1087 阅读 · 0 评论 -
AngularJS ng-include
https://docs.angularjs.org/api/ng/directive/ngIncludeangular expression evaluating to URL. If the source is a string constant, make sure you wrap it in singlequotes, e.g. src="'myPartialTemplate转载 2014-07-21 23:25:15 · 1325 阅读 · 0 评论 -
AngularJS: get JSON data from Service to Controller
My original code:In services.js:原创 2014-07-22 01:11:04 · 1229 阅读 · 0 评论 -
How do I store a current user context or global constants in Angular?
http://stackoverflow.com/questions/14206492/how-do-i-store-a-current-user-context-in-angular/14206567#14206567The easiest way to accomplish this is by using a service. For example:app.factory(转载 2014-07-23 07:29:01 · 765 阅读 · 0 评论