aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)Author
2012-03-28chore(module): move files around in preparation for more modulesMisko Hevery
2012-03-26feat($compile): do not interpolate boolean attributes, rather evaluate themVojta Jina
So that we can have non string values, e.g. ng-value="true" for radio inputs Breaks boolean attrs are evaluated rather than interpolated To migrate your code, change: <input ng-disabled="{{someBooleanVariable}}"> to: <input ng-disabled="someBooleanVariabla"> Affected directives: * ng-multiple * ng-selected * ng-checked * ng-disabled * ng-readonly * ng-required
2012-03-26refactor(ngBindAttr): removeVojta Jina
Breaks ng-bind-attr directive removed
2012-03-26feat(ngValue): allow radio inputs to have non string valuesVojta Jina
Closes #816
2012-03-26refactor($sniffer): make $sniffer service privateIgor Minar
This service has been accidentaly documented in the past, it should not be considered to be public api. I'm also removing fallback to Modernizr since we don't need it. Breaks any app that depends on this service and its fallback to Modernizr, please migrate to custom "Modernizr" service: module.value('Modernizr', function() { return Modernizr; });
2012-03-26feat($controller): support controller registration via $controllerProviderIgor Minar
It's now possible to register controllers as: .register('MyCtrl', function($scope) { ... }); // or .register('MyCtrl', ['$scope', function($scope) { ... }); Additionally a module loader shortcut api was added as well: myModule.controller('MyCtr', function($scope) { ... });
2012-03-23feat(http): added params parameterMisko Hevery
The params parameter can now be used to serialize parameters in the URLs. The serialization does proper escaping and JSON encoding if it is an object.
2012-03-23fix(q): resolve all of nothing to nothingMisko Hevery
$q.all([]) no longer throws exception and resolves to empty array []
2012-03-23fix($compile): create new (isolate) scopes for directives on root elementsIgor Minar
previously we would not create them and it's causing all kinds of issues and accidental leaks Closes #817
2012-03-22fix(forEach): should ignore prototypically inherited propertiesIgor Minar
Closes #813
2012-03-22feat(jqLite): make injector() and scope() work with the document objectIgor Minar
For typical app that has ng-app directive on the html element, we now can do: angular.element(document).injector() or .injector() angular.element(document).scope() or .scope() instead of: angular.element(document.getElementsByTagName('html')[0]).injector() ...
2012-03-20feat(input.radio): Allow value attribute to be interpolatedVojta Jina
2012-03-20refactor($resource): unify and simplify the codeIgor Minar
2012-03-20fix($http): don't send Content-Type header when no dataIgor Minar
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-20style(ResourceSpec): style clean upIgor Minar
2012-03-20fix($resource): support escaping of ':' in resource urlIgor Minar
So one can how define cors/jsonp resources with port number as: resource.route('http://localhost\\:8080/Path')
2012-03-20feat($route): when matching consider trailing slash as optionalIgor Minar
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-20fix($log): avoid console.log.apply calls in IEIgor Minar
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-20fix($compile): Merge interpolated css class when replacing an elementVojta Jina
2012-03-19fix(matchers.toHaveClass): Correct reference to angular.mock.dumpVojta Jina
2012-03-19bug(ie7): incorrectly set all inputs to disabledMisko Hevery
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-19fix(json): added support for iso8061 timezoneMisko Hevery
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-19fix(compiler): allow transclusion of root elementsMisko Hevery
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-19fix(select): multiselect failes to update view on selection insertMisko Hevery
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-19fix(ngForm): alias name||ngFormMisko Hevery
form directive was requiring name attribute even when invoked as attribute, resulting in unnecessary duplication
2012-03-19fix(ngView): controller not publishedMisko Hevery
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-19feat(jqLite): add .controller() methodMisko Hevery
extend JQuery with .controller() method which retrieves the closest controller for a given element
2012-03-18feat(scope.$eval): Allow passing locals to the expressionVojta Jina
2012-03-17fix(ngRepeat): correct variable reference in error messageIgor Minar
Closese #803
2012-03-16fix(forms): Set ng-valid/ng-invalid correctlyVojta Jina
2012-03-16feat(injector): infer _foo_ as fooIgor Minar
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-16style(ngViewSpec): pretify some tests with $destroy eventsIgor Minar
2012-03-16feat(scope): broadcast $destroy event on scope destructionIgor Minar
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-15style(ngSwitchSpec): fix typoIgor Minar
2012-03-14fix(ng-switch): properly destroy child scopesIgor Minar
2012-03-13feat(ng-list): Allow custom separatorVojta Jina
2012-03-13feat(compile): allow ngForm on attribute and classMisko Hevery
#feature - ngForm directive can now be used with element, class, and attributes
2012-03-13f(compile): boolean attributes too agresiveMisko Hevery
- compiler would rewrite boolean attributes on all elements. This is too aggressive and interferes with some third-party frameworks
2012-03-13fix(ng-non-bindable): increase priority to 1000Misko Hevery
- increase ng-non-bindable prioirity to 1000 so that it prevents attribute interpolation on same level.
2012-03-13feat(form): publish validationErrorKeys as CSSMisko Hevery
- 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-13fix(forms): remove control.$form and use nullFormCtrlIgor Minar
2012-03-13fix(forms): fix nesting issues and add testsIgor Minar
2012-03-13fix(forms): lowercase all validation error keysIgor Minar
2012-03-13fix(scope): remove scope $destroy eventIgor Minar
2012-03-12fix(forms): prefix all form and control properties with $Igor Minar
2012-03-12fix(forms): remove the need for extra form scopeIgor Minar
the forms/controls code refactored not to depend on events which forced us to create new scope for each form element.
2012-03-12style(ng-include): remove unused argsIgor Minar
2012-03-12test(ng-include): add ng-include=src testIgor Minar
2012-03-12fix(svg): normalize class access for SVGMisko Hevery
2012-03-12fix(forms): Propagate change from model even if it's undefinedVojta Jina