@angular-wave/angular.ts 0.0.34 → 0.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/angular-ts.esm.js +1 -1
- package/dist/angular-ts.umd.js +1 -1
- package/package.json +1 -1
- package/src/core/root-scope.js +81 -36
- package/src/core/timeout.js +1 -1
- package/src/directive/input.js +1 -1
- package/src/router/services.js +0 -1
- package/src/services/browser.js +3 -3
- package/test/core/parse.spec.js +13 -0
- package/test/core/scope.spec.js +8 -8
- package/test/core/timeout.spec.js +1 -1
- package/types/index.d.ts +57 -45
- package/types/router/index.d.ts +0 -1
- package/types/router/interface.d.ts +0 -1
- package/types/router/legacy/resolveService.d.ts +0 -1
- package/types/router/legacy/stateEvents.d.ts +2 -1
- package/types/router/stateFilters.d.ts +0 -1
- package/types/router/stateProvider.d.ts +0 -1
- package/types/router/statebuilders/onEnterExitRetain.d.ts +0 -1
- package/types/router/locationServices.d.ts +0 -50
package/types/router/index.d.ts
CHANGED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/** @publicapi @module ng1 */ /** */
|
|
2
|
-
import { LocationConfig, LocationServices, Router } from "./core";
|
|
3
|
-
import { ILocationService, ILocationProvider, IWindowService } from "../index";
|
|
4
|
-
/**
|
|
5
|
-
* Implements Router LocationServices and LocationConfig using Angular 1's $location service
|
|
6
|
-
* @internalapi
|
|
7
|
-
*/
|
|
8
|
-
export declare class Ng1LocationServices
|
|
9
|
-
implements LocationConfig, LocationServices
|
|
10
|
-
{
|
|
11
|
-
private $locationProvider;
|
|
12
|
-
private $location;
|
|
13
|
-
private $sniffer;
|
|
14
|
-
private $browser;
|
|
15
|
-
private $window;
|
|
16
|
-
path: any;
|
|
17
|
-
search: any;
|
|
18
|
-
hash: any;
|
|
19
|
-
hashPrefix: any;
|
|
20
|
-
port: any;
|
|
21
|
-
protocol: any;
|
|
22
|
-
host: any;
|
|
23
|
-
private _baseHref;
|
|
24
|
-
private _urlListeners;
|
|
25
|
-
/**
|
|
26
|
-
* Applys ng1-specific path parameter encoding
|
|
27
|
-
*
|
|
28
|
-
* The Angular 1 `$location` service is a bit weird.
|
|
29
|
-
* It doesn't allow slashes to be encoded/decoded bi-directionally.
|
|
30
|
-
*
|
|
31
|
-
* See the writeup at https://github.com/angular-ui/ui-router/issues/2598
|
|
32
|
-
*
|
|
33
|
-
* This code patches the `path` parameter type so it encoded/decodes slashes as ~2F
|
|
34
|
-
*
|
|
35
|
-
* @param router
|
|
36
|
-
*/
|
|
37
|
-
static monkeyPatchPathParameterType(router: Router): void;
|
|
38
|
-
constructor($locationProvider: ILocationProvider);
|
|
39
|
-
onChange(callback: Function): () => Function[];
|
|
40
|
-
html5Mode(): any;
|
|
41
|
-
baseHref(): any;
|
|
42
|
-
url(newUrl?: string, replace?: boolean, state?: any): string;
|
|
43
|
-
_runtimeServices(
|
|
44
|
-
$rootScope: any,
|
|
45
|
-
$location: ILocationService,
|
|
46
|
-
$sniffer: any,
|
|
47
|
-
$browser: any,
|
|
48
|
-
$window: IWindowService,
|
|
49
|
-
): void;
|
|
50
|
-
}
|