Igor Minar
6a8749e65a
refactor($resource): unify and simplify the code
2012-03-20 11:07:38 -07:00
Igor Minar
1a5bebd927
fix($http): don't send Content-Type header when no data
...
When a http request has no data (body), we should not send the
Content-Type header as it causes problems for some server-side
frameworks.
Closes #749
2012-03-20 11:07:38 -07:00
Igor Minar
83155e8fbe
style(ResourceSpec): style clean up
2012-03-20 11:07:37 -07:00
Igor Minar
6d6f875345
fix($resource): support escaping of ':' in resource url
...
So one can how define cors/jsonp resources with port number as:
resource.route('http://localhost\\:8080/Path ')
2012-03-20 11:07:37 -07:00
Igor Minar
a4fe51da3b
feat($route): when matching consider trailing slash as optional
...
This makes for a much more flexible route matching:
- route /foo matches /foo and redirects /foo/ to /foo
- route /bar/ matches /bar/ and redirects /bar to /bar/
Closes #784
2012-03-20 11:07:37 -07:00
Igor Minar
15213ec212
fix($log): avoid console.log.apply calls in IE
...
In IE window.console.log and friends are functions that don't have apply or call fns.
For this reason we have to treat them specially and do our best to log at least
something when running in this browser.
Closes #805
2012-03-20 11:07:36 -07:00
Vojta Jina
f49eaf8bf2
fix($compile): Merge interpolated css class when replacing an element
2012-03-20 10:39:43 -07:00
Vojta Jina
f701ce08f9
fix(matchers.toHaveClass): Correct reference to angular.mock.dump
2012-03-19 17:26:29 -07:00
Misko Hevery
1cc0e4173d
bug(ie7): incorrectly set all inputs to disabled
...
In ie7 all of the input fields are set to readonly and disabled, because ie7 enumerates over all attributes even if the are not declared on the element.
2012-03-19 15:49:42 -07:00
Misko Hevery
5ac14f633a
fix(json): added support for iso8061 timezone
...
Added support of timezone in dates not just zulu timezone.
This fixes issues for date filter which uses json deserialization under the hood. (for now)
Closes #/800
2012-03-19 11:41:10 -07:00
Misko Hevery
9918b748be
fix(compiler): allow transclusion of root elements
...
Fixed an issue where a directive that uses transclusion (such as ngRepeat) failed to link if it was declared on the root element of the compilation tree. (For example ngView or ngInclude including template where ngRepeat was the top most element).
2012-03-19 11:35:10 -07:00
Misko Hevery
6ecac8e71a
fix(select): multiselect failes to update view on selection insert
...
In multiselect when the underlying selection array push/pops an element the view did not re-render since the array reference stayed the same.
2012-03-19 11:35:10 -07:00
Misko Hevery
823adb2319
fix(ngForm): alias name||ngForm
...
form directive was requiring name attribute even when invoked as attribute, resulting in unnecessary duplication
2012-03-19 11:35:09 -07:00
Misko Hevery
21e74c2d2e
fix(ngView): controller not published
...
corrected omitted assignment of controller to the element data object. Without this fix the controller created by ngView is not accessible from the browser debugger.
2012-03-19 11:35:09 -07:00
Misko Hevery
6c5a05ad49
feat(jqLite): add .controller() method
...
extend JQuery with .controller() method which retrieves the closest controller for a given element
2012-03-19 11:35:09 -07:00
Vojta Jina
192ff61f5d
feat(scope.$eval): Allow passing locals to the expression
2012-03-18 23:46:30 -07:00
Igor Minar
935c1018da
fix(ngRepeat): correct variable reference in error message
...
Closese #803
2012-03-17 15:57:55 -07:00
Vojta Jina
08bfea183a
fix(forms): Set ng-valid/ng-invalid correctly
2012-03-16 12:06:29 -07:00
Igor Minar
f13dd3393d
feat(injector): infer _foo_ as foo
...
this is to enable nicer tests:
describe('fooSvc', function() {
var fooSvc;
beforeEach(inject(function(_fooSvc_) {
fooSvc = _fooSvc_;
}));
it('should do this thing', function() {
//test fooSvc
});
});
2012-03-16 10:52:40 -07:00
Igor Minar
bca96e7c7c
style(ngViewSpec): pretify some tests with $destroy events
2012-03-16 10:52:40 -07:00
Igor Minar
9b1aff905b
feat(scope): broadcast $destroy event on scope destruction
...
perf testing shows that in chrome this change adds 5-15% overhead
when destroying 10k nested scopes where each scope has a $destroy listener
2012-03-16 09:41:05 -07:00
Igor Minar
252d4548f9
style(ngSwitchSpec): fix typo
2012-03-15 15:23:49 -07:00
Igor Minar
2315d9b361
fix(ng-switch): properly destroy child scopes
2012-03-14 14:33:20 -07:00
Vojta Jina
13f31602f3
feat(ng-list): Allow custom separator
2012-03-13 17:51:05 -07:00
Misko Hevery
e9e3ee012b
feat(compile): allow ngForm on attribute and class
...
#feature
- ngForm directive can now be used with element, class, and attributes
2012-03-13 16:59:10 -07:00
Misko Hevery
de9464c143
f(compile): boolean attributes too agresive
...
- compiler would rewrite boolean attributes on all elements. This is too aggressive and interferes with some third-party frameworks
2012-03-13 16:59:03 -07:00
Misko Hevery
31cd580310
fix(ng-non-bindable): increase priority to 1000
...
- increase ng-non-bindable prioirity to 1000 so that it prevents attribute interpolation on same level.
2012-03-13 16:58:36 -07:00
Misko Hevery
d34f3bc7a6
feat(form): publish validationErrorKeys as CSS
...
- The validationErrorKeys are now published as CSS for easy styling. The errorKeys should be in
camelCase and the CSS will be in snake-case
2012-03-13 16:57:36 -07:00
Igor Minar
4806d28a29
fix(forms): remove control.$form and use nullFormCtrl
2012-03-13 16:05:52 -07:00
Igor Minar
089c0f8b0e
fix(forms): fix nesting issues and add tests
2012-03-13 16:05:52 -07:00
Igor Minar
9277d12fc0
fix(forms): lowercase all validation error keys
2012-03-13 14:13:53 -07:00
Igor Minar
ac5151a469
fix(scope): remove scope $destroy event
2012-03-13 14:13:53 -07:00
Igor Minar
f59e4b11f1
fix(forms): prefix all form and control properties with $
2012-03-12 23:04:11 -07:00
Igor Minar
5e6ba25201
fix(forms): remove the need for extra form scope
...
the forms/controls code refactored not to depend on events which forced
us to create new scope for each form element.
2012-03-12 23:04:11 -07:00
Igor Minar
9134f5ce5a
style(ng-include): remove unused args
2012-03-12 23:04:11 -07:00
Igor Minar
4e6b065a2f
test(ng-include): add ng-include=src test
2012-03-12 23:04:11 -07:00
Misko Hevery
48096048cf
fix(svg): normalize class access for SVG
2012-03-12 21:59:50 -07:00
Vojta Jina
1b9277bf6f
fix(forms): Propagate change from model even if it's undefined
2012-03-12 01:40:12 -07:00
Misko Hevery
cce31d4c93
chore(ng-include): update to work in ng-include|src mode
2012-03-11 22:36:29 -07:00
Vojta Jina
716dd5f3f9
refactor(forms): Remove touch() method
2012-03-09 17:33:22 -08:00
Vojta Jina
83314913e7
refactor(forms): Rename read() -> setViewValue()
2012-03-09 17:33:22 -08:00
Igor Minar
4a94bb9b34
fix(startTag): fix tagname extraction
...
the original code magically worked for ng:foo but for nothing else
2012-03-09 16:27:12 -08:00
Igor Minar
f4d338d393
chore(*): refactor all ng: to ng-
2012-03-09 16:14:26 -08:00
Vojta Jina
0bfaa579c0
feat($provide.service): Add $provide.service() for registering a class
2012-03-09 10:10:29 -08:00
Vojta Jina
00d4427388
refactor($provide) Rename service -> provider
...
It registers a provider class, so this makes more sense.
Breaks Rename $provide.service -> $provide.provider
2012-03-09 10:10:28 -08:00
Vojta Jina
e0c9551fd7
refactor(forms): remove registerWidget and use event instead
...
Each widget (ng-model directive) emits $newFormControl event instead of getting hold of parent form
and calling form.registerWidget(this);
2012-03-09 10:10:28 -08:00
Igor Minar
5d09a1efd3
fix(ng-view, ng-include): onload and $contentLoaded
...
- change custom onload directive to special arguments recongnized by both
ng-view and ng-include
- rename $contentLoaded event to $viewContentLoaded and $includeContentLoaded
- add event docs
2012-03-08 22:29:35 -08:00
Igor Minar
f54db2ccda
chore(directives,widgets): reorg the code under directive/ dir
2012-03-08 22:29:34 -08:00
Misko Hevery
dd7b0f56fc
fix(ng-cloak): work with class
2012-03-08 16:30:39 -08:00
Vojta Jina
b3750103cc
fix($parse): Allow property names that collide with native object properties
...
I.e. constructor, toString, or watch on FF
(https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/watch )
+ optimize parser a bit to not create getter function for operators
2012-03-08 11:39:03 -08:00