Jared Reynolds
bf2ed03d80
Added remainder of angular mocks 1.2 definitions
2013-10-23 14:55:46 -07:00
John Emau
1928fb24b3
fixing angular-route-tests
2013-10-23 14:55:46 -07:00
John Emau
e06a344578
Merge branch 'update-angularjs' into removing-extraneous-for-daptiv-type-definitions
...
Conflicts:
angularjs/angular-mocks.d.ts
2013-10-23 14:55:46 -07:00
Jonathan Park
683e94d8d8
Adding angular 1.2 definitions
...
Conflicts:
angularjs/angular-mocks.d.ts
2013-10-23 14:55:46 -07:00
unknown
465dfbaa6e
Angular mocks changes for 1.2.0
2013-10-23 14:55:46 -07:00
Georgios Diamantopoulos
1ea3ae922f
NG directives: fixes
...
Allow functions to be defined for template/templateUrl and array notation in controller
There's not a more elegant solution that I know of until we get structs in TS anyway.
2013-10-21 12:35:44 +03:00
vvakame
34899afaae
Merge commit '2772dfeec9cdb1744f6c010babef9e40b6770dd7' into plan-of-destroy-implicitAny
2013-10-18 12:41:53 +09:00
Santi Albo
8c58256dc7
Set viewValue to any everywhere
...
Documentation states `viewValue` and `modelValue` to be a string but other types do work and it's common to use them.
2013-10-17 14:36:13 +01:00
vvakame
2708bc05cd
Fixed tsc failed on Node.js v0.8.25
2013-10-03 11:23:38 +09:00
vvakame
3fe1f6bc4e
Fixed to CI test passing
2013-10-03 10:18:58 +09:00
basarat
2a1a03c61f
Controller is a valid directive member
2013-10-01 22:27:10 +10:00
basarat
a27594622d
angular useful private members of scope
2013-09-28 13:56:26 +10:00
Boris Yankov
c2df10e5f1
Merge pull request #1083 from apuchkov/master
...
Override find functions in IAugmentedJQuery interface
2013-09-25 18:21:46 -07:00
Alex Puchkov
e381ed37dd
Override find functions in IAugmentedJQuery interface
...
Calling IAugmentedJQuery.find() returns variable of IAugmentedJQuery
type, instead of JQuery.
2013-09-25 17:02:06 -04:00
Santi Albo
2be34a6ce6
Typo in Angular.js type definition (controler -> controller)
2013-09-25 11:46:33 +01:00
Gregory Petrosyan
5266bc625f
Add $watchCollection(obj, listener) API to angular.d.ts
...
https://github.com/angular/angular.js/blob/master/src/ng/rootScope.js#L362
Signed-off-by: Gregory Petrosyan <gregory.petrosyan@gmail.com>
2013-09-18 14:40:59 +04:00
Romano Lindano
0b1dc70156
Definitions for AngularJs Scenario Testing
2013-09-17 08:11:46 +02:00
Jason Jarrett
b9d02bb305
angularjs.d.ts: adding missing interceptors: any[] to IHttpProvider
2013-09-14 21:50:29 -07:00
basarat
a29d3c48d0
angular Boostrap can accept the implicit "document" dom object: http://docs.angularjs.org/guide/bootstrap
2013-09-08 16:40:11 +10:00
basarat
2ff392fcae
angular ngformcontroller setDirty/setPristine
2013-09-08 00:34:11 +10:00
mick delaney
4297a8fe89
Adding $setDirty(dirty: boolean): void; To IFormController
...
Documented here: http://docs.angularjs.org/api/ng.directive:form.FormController
2013-09-04 10:22:24 +01:00
anchann
c2a19737cb
AngularJS: fixing http promise typings
...
Looks like defining only a single overload of the then function on the
IHttpPromise interface is making the other overload of it defined on
IPromise invisible to the compiler. As such, we need to expose both
versions. Otherwise, the standard promise unwrapping behaviour does not
type check correctly.
2013-09-03 14:51:57 +09:00
Diullei Gomes
b365153083
Merge pull request #982 from staxmanade/patch-2
...
small spelling tweak to angular readme
2013-09-02 13:26:20 -07:00
Jason Jarrett
16fa2ac72b
small spelling tweak to angular readme
2013-09-02 09:40:38 -07:00
Elmar Athmer
01912ae5e7
add support for angular.element
...
angular.element augments the JQuery object for the given element with
angular specific methods like e.g. access for the scope.
2013-08-30 18:11:40 +02:00
Elmar Athmer
bd8293d2a5
fix typo
2013-08-30 17:57:59 +02:00
Basarat Syed
1088cf1cab
duplicate cleanup
2013-08-30 18:50:31 +10:00
Basarat Syed
188987d3e2
Merge branch 'patch-1' of https://github.com/georgiosd/DefinitelyTyped into georgiosd-patch-1
2013-08-30 18:43:15 +10:00
benjaminjackman
bb999fd4e6
Update angular.d.ts
...
ILocationService.search() will return a hash of the query parameters in the current location, not a string.
2013-08-29 14:25:57 -05:00
Georgios Diamantopoulos
8c6037d9e5
Update angular.d.ts
2013-08-29 17:19:30 +03:00
Georgios Diamantopoulos
a0b3d5f130
Added overload for IPromise.then that will retain IHttpPromise type result
2013-08-29 16:48:36 +03:00
Georgios Diamantopoulos
cac75d0599
IHttpPromise updates
...
success/error should retain the promise type
also, the callback return should be void, any return value doesn't seem to be carried anywhere: http://jsfiddle.net/9syMH/
2013-08-28 10:54:24 +03:00
basarat
402fd36440
angularjs: Reverting to using stronger signatures for IPromise. With tests for that.
2013-08-27 22:13:20 +10:00
basarat
d3f7a944b1
revert promise signature
...
see : https://github.com/borisyankov/DefinitelyTyped/pull/947#issuecomment-23307393
2013-08-27 11:28:20 +10:00
basarat
f1bdd8b3df
added tests for angular promise chain
2013-08-26 22:12:06 +10:00
Georgios Diamantopoulos
8b136c2043
NG: Updated IPromise.then to return a typed result.
2013-08-26 13:29:44 +03:00
gstamac
f942d086b0
AngularJS: fixed for 0.9.1.1
2013-08-25 12:48:46 +02:00
Ben Jackman
7bd81009a2
angularjs.d.ts: fixed implicit any errors
...
Signed-off-by: Ben Jackman <ben@jackman.biz>
2013-08-16 00:40:36 -05:00
Boris Yankov
c5ddb2e5c3
Merge pull request #851 from anchann/angulartyping
...
Angular: typing promises, deferreds
2013-08-09 10:14:20 -07:00
Santi Albo
922051a6d5
Update documentation for angularjs $httpBackend expect methods.
...
Both `expect`, `expectPOST`, `expectPUT` and `expectPATCH` can accept:
- string
- RegExp
- function(string)
- Object
This can be seen in https://github.com/angular/angular.js/blob/master/src/ngMock/angular-mocks.js#L1504
Definition will be simpler if we just allow `data` to have type `any`.
2013-08-09 11:50:29 +01:00
anchann
135a8579ee
Angular: typing promises, deferreds
2013-08-09 16:28:13 +09:00
Boris Yankov
6f998bc2c0
Merge pull request #829 from georgiosd/master
...
Added generics to IHttpPromise and some missing properties/overloads
2013-08-05 06:17:22 -07:00
Georgios Diamantopoulos
25c88427fb
Added generics to IHttpPromise and some missing properties/overloads
...
I know you haven't used generics so far so I hope this is a welcome
change - the only nuisance is that it will "break" current compilation
but will increase type safety by far.
Also added params to ICurrentRoute and inline injection notation to
$provide.decorator as per
https://github.com/borisyankov/DefinitelyTyped/issues/799
2013-08-05 12:06:53 +03:00
biiiipy
2112b07817
Add "name" prop to IRoute
2013-08-05 11:31:43 +03:00
Diullei Gomes
2089d27c7f
Merge pull request #823 from basarat/patch-1
...
Update angular.d.ts for dependency injection
2013-08-03 09:13:40 -07:00
basarat
6fc8cd92ed
Update angular.d.ts
...
allows the following syntax :
function foo($scope){}
foo.$inject = ['$scope']
2013-08-03 14:45:05 +10:00
danieljsinclair
f711d046d5
IRoute.templateUrl also now accepts a function instead of a string.
...
Adjusted templateUrl of IRoute because $routeProvider now allows function templateUrls to be defined such as;
.when("/:controller/:action", {
templateUrl: function ($routeParams) {
console.log("Default rule");
return '/ng/app/views/partials/' + $routeParams.action.toLowerCase() + '.htm';
}
})
2013-08-01 18:12:31 +01:00
Brian Surowiec
512ccaba0a
Angular JS: adding debug() to the log service
2013-07-26 23:56:39 -04:00
jraymakers
0d35893c08
Replace bool with boolean in angular
2013-07-25 22:56:10 -07:00
James Hudon
1a32cce3e0
AngularJS: give an interface to $http callback functions
...
- add IHttpPromiseCallback for both `error` and `success` promise calls
use case is if we're passing around the callback, we don't want to be
repeating that entire function declaration every time, and we cannot use
`Function` as that doesn't satisfy the compiler. (see test case)
2013-07-23 23:45:49 -04:00