Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: third_party/pkg/angular/lib/directive/ng_form.dart

Issue 124053002: Adding Angular and dependent packages for testing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 part of angular.directive;
2
3 /**
4 * The form directive listens on submission requests and, depending,
5 * on if an action is set, the form will automatically either allow
6 * or prevent the default browser submission from occurring.
7 */
8 @NgDirective(
9 selector: 'form',
10 visibility: NgDirective.CHILDREN_VISIBILITY)
11 class NgForm {
12 dom.Element _element;
13 Scope _scope;
14
15 NgForm(this._scope, this._element) {
16 if(!this._element.attributes.containsKey('action')) {
17 this._element.onSubmit.listen((event) {
18 event.preventDefault();
19 });
20 }
21 }
22 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698