angular/modules/angular2
David-Emmanuel Divernois 8fa1539bac feat(keyEvents): support for <div (keyup.enter)="callback()">
This commit adds a plugin for the event manager, to allow a key name to
be appended to the event name (for keyup and keydown events), so that
the callback is only called for that key.

Here are some examples:
 (keydown.shift.enter)
 (keyup.space)
 (keydown.control.shift.a)
 (keyup.f1)

Key names mostly follow the DOM Level 3 event key values:
http://www.w3.org/TR/DOM-Level-3-Events-key/#key-value-tables

There are some limitations to be worked on (cf details
in https://github.com/angular/angular/pull/1136) but for now, this
implementation is reliable for the following keys (by "reliable" I mean
compatible with Chrome and Firefox and not depending on the keyboard
layout):
- alt, control, shift, meta (those keys can be combined with other keys)
- tab, enter, backspace, pause, scrolllock, capslock, numlock
- insert, delete, home, end, pageup, pagedown
- arrowup, arrowdown, arrowleft, arrowright
- latin letters (a-z), function keys (f1-f12)
- numbers on the numeric keypad (but those keys are not correctly simulated
by Chromedriver)

There is a sample to play with in examples/src/key_events/.

close #523
close #1136
2015-04-10 13:29:27 +02:00
..
docs docs(02_directives.md): foreach -> for 2015-04-04 10:32:53 +02:00
src feat(keyEvents): support for <div (keyup.enter)="callback()"> 2015-04-10 13:29:27 +02:00
test feat(keyEvents): support for <div (keyup.enter)="callback()"> 2015-04-10 13:29:27 +02:00
angular2.js docs: annotations 2015-03-19 16:56:52 +00:00
annotations.js docs: annotations 2015-03-19 16:56:52 +00:00
change_detection.js refactor(change_detection): removed directive and binding mementos 2015-04-09 18:56:19 -07:00
core.js feat(view): generalized loading of dynamic components 2015-04-09 22:15:42 -07:00
di.js feat(di): Add the @Injectable annotation 2015-03-17 22:12:47 -07:00
directives.js refactor(forEach): change to for-of with iterable 2015-03-21 14:19:21 -07:00
forms.js refactor(forms): make form group responsible for supporting optional controls 2015-03-10 18:12:30 -07:00
globals.ts chore(ts): duplicate the .es6 files in the facade directory to TypeScript. 2015-04-03 09:35:06 -07:00
package.json feat(facade): added support for observables 2015-03-24 13:45:39 -07:00
pipes.js docs: create public API surface 2015-04-02 23:23:39 +00:00
pubspec.yaml feat(dart/transform): Add a di transformer 2015-04-02 11:06:33 -07:00
README.dart.md feat(publish): update files to publish to npm 2015-02-24 16:53:44 -08:00
README.js.md feat(publish): update files to publish to npm 2015-02-24 16:53:44 -08:00
template.js docs: create public API surface 2015-04-02 23:23:39 +00:00
test_lib.js chore(packaging): update import for the new file structure 2015-02-05 15:47:12 -08:00
traceur-runtime.d.ts chore(ts): duplicate the .es6 files in the facade directory to TypeScript. 2015-04-03 09:35:06 -07:00
transformer.dart feat(dart/transformer:: Initial commit of ctor stubs & annotation register 2015-02-17 16:34:19 -08:00
tsd.json chore(ts): introduce some TypeScript type declarations. 2015-04-01 12:01:45 -07:00

Angular2

The sources for this package are in the main Angular2 repo. Please file issues and pull requests against that repo. This is the repository for the upcoming 2.0 version. If you're looking for the current official version of Angular you should go to angular/angular.js

This package contains different sources for different users:

  1. The files located in the root folder can be consumed using CommonJS
  2. The files under /es6 are es6 compatible files that can be transpiled to es5 using any transpiler. This contains:
    • dev/: a development version that includes runtime type assertions
    • prod/: a production version that does not include runtime type assertions
  3. The files under /atscript are the AtScript source files

As a convenience, we provide you with /es6/{dev|prod}/es5build.js, a script to transpile the es6 sources into es5 using Google Traceur.

License: Apache MIT 2.0