AngularJS API Docs

Welcome to the AngularJS API docs page. These pages contain the AngularJS reference materials for version 1.2.6 taco-salsafication.

欢迎使用AngularJS API 文档页,这些页面含有了AngularJS (引用材料为1.2.6 taco-salsafication版本)

The documentation is organized into modules which contain various components of an AngularJS application. These components are directives, services, filters, providers, types, global APIs and testing mocks.

文档被组织化为模块(含有各种各样的组件的AngularJS 应用程序).这些模块是写指定、服务、过滤器、providers,类型、全局API和测试模块.

Angular Namespaces $ and $$To prevent accidental name collisions with your code, Angular prefixes names of public objects with $ and names of private objects with $$. Please do not use the $ or $$ prefix in your code.

Angular Namespaces $ 及$$ 用于阻止你程序中意外的命名冲突.公共的对象Angular用$前缀表示,私有的对象Angular 用$$前缀表示.请不要用这两个符号在你自己的代码对象中.

Angular Namespace Angular 命名空间

ng (core module)  ng核心模块

This module is provided by default and contains the core components of AngularJS.

该模块通默认提供,且含有核心AngularJS组件

Directives

This is the core collection of directives you would use in

your template code to build an AngularJS application.

这是一个将会用于你的模板代码中的核心的指令集,你可以用这些指令集来创建一个AngularJS 程序.

Some examples include: ngClickngIncludengRepeat, etc…

一些例子如:ngClickngIncludengRepeat

Services / Factories

This is the core collection of services which are used within the DI of your application.

这是一个核心服务集合(这些核心服务集合用于你程序中的依赖注入)

Some examples include: $compile$http$routeParams$location, etc…

一些例子包含:$compile$http$routeParams$location,等

Filters

The core filters available in the ng module are used to transform template data before it is renders within directives and expressions.

核心的过滤器集合(在ng module 可用),被用于传输模板数据(在这些模板数据渲染与指令集和表达式之前)

一些例子包含: filterdatecurrencylowercaseuppercase, etc...

Global APIs

The core global API functions are attached to the angular object. These core functions are useful for low level JavaScript operations within your application.

核心全局API函数,属于angular 对象中.这些函数很有用于你程序中的javascript操作.

一些例子包含: angular.copy()angular.equals()angular.element(), etc...

ngRoute

Use ngRoute to enable URL routing to your application. The ngRoute module supports URL management via both hashbang and HTML5 pushState.

使用ngRoute 可使你的程序URL拥有路由能力.该模块支持URL管理(通过hashbang 和HTML5 pushState

Include the angular-route.js file and set ngRoute as a dependency for this to work in your application.

其中包含angular-route.js 文件和在你的应用程序中将ngRoute设置为一个dependency 的功能.

Services / Factories

The following services are used for route management:

下面的服务被用于路由管理:

  • $routeParamsis used to access the querystring values present in the URL.
  • $routeParams 被用于访问querystring 值.
  • $routeis used to access the details of the route that is currently being accessed.
  • $route被用于访问当前路由的详请.

$routeProvideris used to register routes for the application.

被用于给你的程序注册路由

Directives

The ngView directive will display the template of the current route within the page.

The ngView 指令将用于呈现页面中当前路由的模板

ngAnimate

Use ngAnimate to enable animation features into your application. Various core ng directives will provide animation hooks into your application when ngAnimate is included. Animations are defined by using CSS transitions/animations or JavaScript callbacks.

可使用ngAnimate 让你的程序用于动画特征.只要ngAnimate 被引入,各式各样的核心ng指令将给你的程序提供动画钩子.这些动画可使用css或者javascript回调来定义.

Include the angular-animate.js file and set ngAnimate as a dependency for this to work in your application.

其中包含angular-animate.js 文件和在你的应用程序中将ngRoute设置为一个dependency 的功能.

Services / Factories

Use $animate to trigger animation operations within your directive code.

可使用$animate 来触发你程序中的动画操作.

CSS-based animations

Follow ngAnimate’s CSS naming structure to reference CSS transitions / keyframe animations in AngularJS. Once defined the animation can be triggered by referencing the CSS class within the HTML template code.

AngularJS中遵行ngAnimate的css命名结构来引用css transitions /keyframe 动画.因为定义的动画能够通过引用css类来触发.

JS-based animations

Use module.animation() to register a JavaScript animation. Once registered the animation can be triggered by referencing the CSS class within the HTML template code.

使用 来注册javascript动画.因为注册的动画能够通过引用css类来触发

ngResource

Use the ngResource module when querying and posting data to a REST API.

当get或post请求道rest api时,可使用ngResource 模块

Include the angular-resource.js file and set ngResource as a dependency for this to work in your application.

其中包含angular-resource.js 文件和在你的应用程序中将ngResource 设置为一个dependency 的功能.

Services / Factories

The $resource service is used to define RESTful objects which communicate with a REST API.

$resource服务被用于定义restful对象(restful对象用于和rest api通信)

ngCookies

Use the ngCookies module to handle cookie management within your application.

使用restful对象可在你的应用程序中操作cookie.

Include the angular-cookies.js file and set ngCookies as a dependency for this to work in your application.

其中包含angular-cookies.js 文件和在你的应用程序中将ngCookies 设置为一个dependency 的功能.

Services / Factories

The following services are used for cookie management:

下面的服务用于cookie管理.

  • The $cookie service is a convenient wrapper to store simple data within browser cookies.

$cookie是一个方便的封装(用来存储浏览器cookie中的简单数据)

$cookieStoreis used to store more complex data using serialization.

$cookieStroe被用于存储更多复杂的数据(通过序列化)

ngTouch

Use ngTouch when developing for mobile browsers/devices.

当开发手机等设备是,可使用ngTouch

Include the angular-touch.js file and set ngTouch as a dependency for this to work in your application.

其中包含angular-touch.js 文件和在你的应用程序中将ngTouch 设置为一个dependency 的功能.

Services / Factories

The $swipe service is used to register and manage mobile DOM events.

$swipe 服务用于注册和管理手机dom事件

Directives

Various directives are available in ngTouch to emulate mobile DOM events.

各式各样的指定可用于ngTouch 来模仿手机dom事件.

ngSanitize

Use ngSanitize to securely parse and manipulate HTML data in your application.

你的程序中可使用ngSanitize 可安全地转换和操作html数据.

Include the angular-sanitize.js file and set ngSanitize as a dependency for this to work in your application.

其中包含angular-sanitize.js 文件和在你的应用程序中将sanitize设置为一个dependency 的功能.

Services / Factories

The $sanitize service is used to clean up dangerous HTML code in a quick and convenient way.

Sanitize服务被用于清理危险的html代码.

Filters

The linky filter is used to turn URLs into HTML links within the provided string.

linky filter 用于将url转化为html连接.

ngMock

Use ngMock to inject and mock modules, factories, services and providers within your unit tests

使用ngMock 可注入和mock模块、工厂、服务、providers

Include the angular-mocks.js file into your test runner for this to work.

其中包含 angular-mocks.js文件.

Services / Factories

ngMock will extend the behavior of various core services to become testing aware and manageable in a synchronous manner.

ngMock将扩展各种核心服务的行为,可用于测试

例子包括: $timeout$interval$log$httpBackend, etc...

Global APIs

Various helper functions are available to inject and mock modules within unit test code.

各种帮助函数可用于注入和mock模块(单元测试代码)

例子包括: inject()module()dump(), etc...

大话ASP.NET(第二篇,Angular结构篇--翻译)的更多相关文章

  1. [翻译]Go与C#的比较,第二篇:垃圾回收

    Go vs C#, part 2: Garbage Collection | by Alex Yakunin | ServiceTitan - Titan Tech | Medium 目录 译者注 什 ...

  2. ASP.NET自定义控件组件开发 第一章 第二篇 接着待续

    原文:ASP.NET自定义控件组件开发 第一章 第二篇 接着待续 ASP.NET自定义控件组件开发 第一章 第二篇 接着待续 很感谢大家给我的第一篇ASP.NET控件开发的支持!在写这些之前,我也看了 ...

  3. 【第二篇】ASP.NET MVC快速入门之数据注解(MVC5+EF6)

    目录 [第一篇]ASP.NET MVC快速入门之数据库操作(MVC5+EF6) [第二篇]ASP.NET MVC快速入门之数据注解(MVC5+EF6) [第三篇]ASP.NET MVC快速入门之安全策 ...

  4. 从零开始一个个人博客 by asp.net core and angular(三)

    这是第三篇了,第一篇只是介绍,第二篇介绍了api项目的运行和启动,如果api项目没什么问题了,调试都正常了,那基本上就没什么事了,由于这一篇是讲前端项目的,所以需要运行angular项目了,由于前端项 ...

  5. 利用IdentityServer3在ASP.NET 5和Angular中实现OAuth2 Implicit Flow

    (此文章同时发表在本人微信公众号"dotNET每日精华文章",欢迎右边二维码来关注.) 题记:之前介绍过的IdentityServer3虽然是基于Katana开发的,不过同样可以托 ...

  6. 学习ABP ASP.NET Core with Angular 环境问题

    1. 前言 最近学习ABP架构 搭建ASP.NET Core with Angular遇到了些问题,折腾了一个礼拜最终在今天解决了,想想这个过程的痛苦就想利用博客记录下来.其实一直想写博客,但因为 时 ...

  7. Core Animation 文档翻译 (第二篇)

    Core Animation 文档翻译 (第二篇) 核心动画基础要素 核心动画为我们APP内Views动画和其他可视化元素动画提供了综合性的实现体系.核心动画不是我们APP内Views的替代品,相反, ...

  8. shell第二篇

    第二篇知道shell是什么,再来了解一下shell的分类及相关历史 参考百度百科:shell 1.shell概念(计算机壳层) 在计算机科学中,Shell俗称壳(用来区别于核),是指"提供使 ...

  9. angularjs学习第三天笔记(过滤器第二篇---filter过滤器及其自定义过滤器)

    您好,我是一名后端开发工程师,由于工作需要,现在系统的从0开始学习前端js框架之angular,每天把学习的一些心得分享出来,如果有什么说的不对的地方,请多多指正,多多包涵我这个前端菜鸟,欢迎大家的点 ...

随机推荐

  1. VS2012 编译带有c/c++代码的python模块失败解决方案

    python2.7默认编译带有/c++代码的模块/包是使用VS2008环境变量,所以为了可用,我们要在编译前设置环境变量 SET VS90COMNTOOLS=%VS110COMNTOOLS% 但有时只 ...

  2. XHEditor(MVC4+DWZ) 部分问题的解决

    百度上下载了xheditor1.2.1 一.使用方法: 1.把解压的目录copy到VS中; 2.在需要用的View页面中引用js <script src="~/xheditor/xhe ...

  3. Asp.net web form url route使用总结

    asp.net web form 使用URL路由 注不是mvc中的路由 一.前台控件使用路由,通过表达式生成url地址,注意给路由参数赋值,防止使用了其他路由表达式值方式1:<asp:Hyper ...

  4. MySQL--将MySQL数据导入到SQL Server

    随着时代的进步,社会的发展,各种技术层出不穷五花八门乱七八糟数不胜数(写作文呢!!!) 不扯废话,简单而言,很多公司都会同时使用多种数据库,因此数据在不同数据库之间导入导出就成为一个让人蛋疼的问题,对 ...

  5. [异常解决] virtualbox从.VDI备份文件新建/恢复虚拟机(包括恢复各个备份节点)

    一.前言: ubuntu上的virtualbox中的虚拟机如果关机不当会导致整个虚拟机坏掉,而且采用各种debug方式都难以让它重新启动.这时你只能用之前备份的各个VDI文件来恢复系统了.还有另一种场 ...

  6. 在XML drawable中引用自定义颜色

    == 先看一下一个xml drawable文件,这是一个button的样式. <?xml version="1.0" encoding="utf-8" ? ...

  7. 在github上写个人简历——最简单却又不容易的内容罗列

    前篇博客分享了一下自己初入github的过程,傻瓜式一步步搭建好主页后,终于该做正事儿了——写简历.在脑袋中构思了很多版本,最后终于决定,先写一个最传统的版本,于是我在箱子中翻出我word版本的简历, ...

  8. 大叔也说Xamarin~Android篇~ListView里的Click事件并获取本行的其它元素

    回到目录 我原创,我贡献,我是仓储大叔 本篇大叔原创,本着对技术的热爱去研究它,把成果分享给国人!大叔始终相信一句话:你只有选择一个感兴趣的工作,你才能更好的发挥你的潜力,而这一切都建立在你不断研究, ...

  9. EF架构~为IEnumerable接口添加增删查等操作,原因是IEnumerable导航属性更放心

    回到目录 对EF开发来说,导航属性肯定都用过,事实上,它是由VS IDE工具根据你的数据库关系结构自动生成的外键属性,在类视图中可以看到相关属性,它是以外键表名来标识的,如果是一对多的关系,那么,它会 ...

  10. php-fpm进程数优化

    php-fpm未优化网友反映的问题 1.最近将Wordpress迁移至阿里云.由于自己的服务器是云服务器,硬盘和内存都比较小,所以内存经常不够使,通过ps ax命令查看后,发现启动php-fpm进程数 ...