javascript - Where I could find the api reference for angularjs typescript? -
i come work angularjs 1.4 , pure javascript , started work angularjs 1.5 typescript, , couldn't find docs help. example have guess name of services $q
or $timeout
inject classes. angular.iqservice
, angular.itimeoutservice
respectively.
i hope clear. thanks
definitelytyped repository contains readme file respective angularjs definitions,
all known services interfaces have been defined, , named using following convention:
i + 'servicename' + 'service'
so, instance, $parse service has it's interface defined ng.iparseservice.
service providers, same logic, follow convention:
i + 'servicename' + 'provider'
the $httpprovider, thus, defined ng.ihttpprovider.
the straightforward way figure out typings source file, either local @types
package or definitelytyped repo. typescript works best ide, typings can inspected , auto-completed without documentation.
additionally, auto-generated documentation angularjs typings available here.
Comments
Post a Comment