@angular-wave/angular.ts 0.0.34 → 0.0.36
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/.eslintrc.cjs +1 -1
- package/Makefile +4 -0
- package/README.md +5 -0
- package/dist/angular-ts.esm.js +1 -1
- package/dist/angular-ts.umd.js +1 -1
- package/index.html +3 -102
- package/package.json +2 -2
- package/playwright.config.ts +3 -2
- package/public/public/my_other_directive.html +1 -0
- package/{test → src}/angular.spec.js +5 -5
- package/{test → src}/binding.spec.js +3 -3
- package/src/core/{animate-runner.js → animate/animate-runner.js} +1 -1
- package/src/core/animate/animate.html +18 -0
- package/src/core/{animate.js → animate/animate.js} +4 -5
- package/{test/core → src/core/animate}/animate.spec.js +1 -1
- package/src/core/cache/cache-factor.html +18 -0
- package/{test/core → src/core/cache}/cache-factor.spec.js +2 -2
- package/src/core/cache/cache-factor.test.js +11 -0
- package/src/core/compile/compile.html +18 -0
- package/src/core/{compile.js → compile/compile.js} +25 -21
- package/{test/core → src/core/compile}/compile.spec.js +65 -68
- package/src/core/compile/compile.test.js +12 -0
- package/src/core/controller/controller.html +21 -0
- package/src/core/{controller.js → controller/controller.js} +1 -1
- package/{test/core/controller-provider.spec.js → src/core/controller/controller.spec.js} +2 -2
- package/src/core/controller/controller.test.js +11 -0
- package/{test → src}/core/cookie-reader.spec.js +2 -2
- package/{test → src}/core/document.spec.js +3 -3
- package/src/core/filter/filter.html +18 -0
- package/src/core/{filter.js → filter/filter.js} +5 -5
- package/{test/core → src/core/filter}/filter.spec.js +2 -2
- package/src/core/filter/filter.test.js +11 -0
- package/src/core/interpolate/interpolate.html +21 -0
- package/src/core/{interpolate.js → interpolate/interpolate.js} +1 -1
- package/{test/core → src/core/interpolate}/interpolate.spec.js +2 -2
- package/src/core/interpolate/interpolate.test.js +11 -0
- package/src/core/{interval-factory.js → interval/interval-factory.js} +2 -1
- package/src/core/interval/interval.html +18 -0
- package/src/core/{interval.js → interval/interval.js} +3 -2
- package/{test/core → src/core/interval}/interval.spec.js +6 -10
- package/src/core/interval/interval.test.js +12 -0
- package/src/core/{location.js → location/location.js} +4 -3
- package/{test/core → src/core/location}/location.spec.js +3 -3
- package/{test → src}/core/on.spec.js +3 -3
- package/src/core/parser/parse.js +2 -3
- package/{test/core → src/core/parser}/parse.spec.js +17 -4
- package/{test → src}/core/prop.spec.js +4 -4
- package/{test/core → src/core/pubsub}/pubsub.spec.js +1 -1
- package/src/core/{q.js → q/q.js} +1 -1
- package/{test/core → src/core/q}/q.spec.js +3 -3
- package/{test → src}/core/root-element.spec.js +3 -3
- package/src/core/{sanitize-uri.js → sanitize/sanitize-uri.js} +2 -2
- package/{test/core → src/core/sanitize}/sanitize-uri.spec.js +1 -1
- package/src/core/{sce.js → sce/sce.js} +3 -3
- package/{test/core → src/core/sce}/sce.spec.js +3 -3
- package/src/core/{root-scope.js → scope/scope.js} +105 -62
- package/{test/core → src/core/scope}/scope.spec.js +13 -13
- package/src/core/{timeout.js → timeout/timeout.js} +3 -3
- package/{test/core → src/core/timeout}/timeout.spec.js +3 -3
- package/src/core/{urlUtils.js → url-utils/url-utils.js} +1 -1
- package/{test/core → src/core/url-utils}/url-utils.spec.js +1 -1
- package/src/directive/attrs/attrs.html +18 -0
- package/src/directive/{attrs.js → attrs/attrs.js} +3 -3
- package/{test/directive/scrset.spec.js → src/directive/attrs/attrs.spec.js} +3 -3
- package/{test/directive → src/directive/attrs}/boolean.spec.js +3 -3
- package/{test/directive → src/directive/attrs}/element-style.spec.js +3 -3
- package/{test/directive → src/directive/attrs}/src.spec.js +3 -3
- package/src/directive/attrs/srcset.test.js +11 -0
- package/src/directive/bind/bind.html +18 -0
- package/src/directive/{bind.js → bind/bind.js} +1 -1
- package/{test/directive → src/directive/bind}/bind.spec.js +3 -3
- package/src/directive/bind/bind.test.js +11 -0
- package/{test/sanitize → src/directive/bind}/bing-html.spec.js +3 -3
- package/src/directive/change/change.html +18 -0
- package/{test/directive → src/directive/change}/change.spec.js +3 -3
- package/src/directive/change/change.test.js +11 -0
- package/src/directive/class/class.html +18 -0
- package/src/directive/{class.js → class/class.js} +3 -3
- package/{test/directive → src/directive/class}/class.spec.js +6 -5
- package/src/directive/class/class.test.js +11 -0
- package/src/directive/cloak/cloak.html +18 -0
- package/{test/directive → src/directive/cloak}/cloak.spec.js +3 -3
- package/src/directive/cloak/cloak.test.js +11 -0
- package/src/directive/controller/controller.html +21 -0
- package/{test/directive → src/directive/controller}/controller.spec.js +5 -5
- package/src/directive/controller/controller.test.js +11 -0
- package/{test/directive → src/directive/events}/click.spec.js +3 -3
- package/{test/directive → src/directive/events}/event.spec.js +4 -4
- package/src/directive/events/events.html +18 -0
- package/src/directive/{events.js → events/events.js} +2 -2
- package/src/directive/events/events.test.js +11 -0
- package/src/directive/form/form.html +18 -0
- package/src/directive/{form.js → form/form.js} +2 -2
- package/{test/directive → src/directive/form}/form.spec.js +5 -5
- package/src/directive/form/form.test.js +11 -0
- package/src/directive/if/if.html +18 -0
- package/src/directive/{if.js → if/if.js} +1 -2
- package/src/directive/if/if.md +77 -0
- package/{test/directive → src/directive/if}/if.spec.js +16 -16
- package/src/directive/if/if.test.js +12 -0
- package/src/directive/include/include.html +18 -0
- package/src/directive/{include.js → include/include.js} +2 -2
- package/{test/directive → src/directive/include}/include.spec.js +52 -71
- package/src/directive/include/include.test.js +12 -0
- package/src/directive/init/init.html +18 -0
- package/{test/directive → src/directive/init}/init.spec.js +4 -4
- package/src/directive/init/init.test.js +11 -0
- package/src/directive/input/input.html +18 -0
- package/src/directive/{input.js → input/input.js} +3 -3
- package/{test/directive → src/directive/input}/input.spec.js +5 -9
- package/src/directive/input/input.test.js +11 -0
- package/src/directive/list/list.html +18 -0
- package/src/directive/{list.js → list/list.js} +1 -1
- package/{test/directive → src/directive/list}/list.spec.js +3 -3
- package/src/directive/list/list.test.js +11 -0
- package/src/directive/model/model.html +18 -0
- package/src/directive/{model.js → model/model.js} +10 -6
- package/{test/directive → src/directive/model}/model.spec.js +8 -8
- package/src/directive/model/model.test.js +11 -0
- package/src/directive/model-options/model-option.test.js +11 -0
- package/src/directive/model-options/model-options.html +21 -0
- package/src/directive/{model-options.js → model-options/model-options.js} +1 -1
- package/{test/directive → src/directive/model-options}/model-options.spec.js +7 -7
- package/src/directive/non-bindable/non-bindable.html +21 -0
- package/{test/directive → src/directive/non-bindable}/non-bindable.spec.js +3 -3
- package/src/directive/non-bindable/non-bindable.test.js +11 -0
- package/src/directive/options/options.html +21 -0
- package/src/directive/{options.js → options/options.js} +8 -6
- package/{test/directive → src/directive/options}/options.spec.js +5 -5
- package/src/directive/options/options.test.js +11 -0
- package/src/directive/ref/href.html +18 -0
- package/{test/directive → src/directive/ref}/href.spec.js +4 -4
- package/src/directive/ref/href.test.js +17 -0
- package/src/directive/ref/ref.html +18 -0
- package/src/directive/{ref.js → ref/ref.js} +1 -1
- package/{test/directive → src/directive/ref}/ref.spec.js +2 -2
- package/src/directive/repeat/repeat.html +18 -0
- package/src/directive/{repeat.js → repeat/repeat.js} +13 -13
- package/{test/directive → src/directive/repeat}/repeat.spec.js +8 -9
- package/src/directive/repeat/repeat.test.js +11 -0
- package/src/directive/script/script.html +18 -0
- package/{test/directive → src/directive/script}/script.spec.js +3 -3
- package/src/directive/script/script.test.js +11 -0
- package/src/directive/select/select.html +18 -0
- package/src/directive/{select.js → select/select.js} +2 -2
- package/{test/directive → src/directive/select}/select.spec.js +5 -5
- package/src/directive/select/select.test.js +11 -0
- package/src/directive/show-hide/show-hide.html +21 -0
- package/{test/directive → src/directive/show-hide}/show-hide.spec.js +3 -3
- package/src/directive/show-hide/show-hide.test.js +11 -0
- package/src/directive/style/style.html +18 -0
- package/{test/directive → src/directive/style}/style.spec.js +3 -3
- package/src/directive/style/style.test.js +11 -0
- package/src/directive/switch/switch.html +18 -0
- package/src/directive/{switch.js → switch/switch.js} +3 -3
- package/{test/directive → src/directive/switch}/switch.spec.js +3 -3
- package/src/directive/switch/switch.test.js +11 -0
- package/src/directive/{transclude.js → transclude/transclude.js} +2 -2
- package/src/directive/validators/validators.html +21 -0
- package/src/directive/{validators.js → validators/validators.js} +3 -3
- package/{test/directive → src/directive/validators}/validators.spec.js +3 -3
- package/src/directive/validators/validators.test.js +11 -0
- package/{test/aria → src/exts}/aria.spec.js +3 -3
- package/{test/messages → src/exts}/messages.spec.js +5 -5
- package/{test/filter → src/filters}/filter.spec.js +10 -5
- package/{test/filter → src/filters}/filters.spec.js +3 -3
- package/{test/filter → src/filters}/limit-to.spec.js +3 -3
- package/{test/filter → src/filters}/order-by.spec.js +2 -2
- package/src/injector.js +1 -2
- package/{test → src}/injector.spec.js +4 -4
- package/src/jqLite.js +1 -1
- package/{test → src}/jqlite.spec.js +6 -6
- package/src/loader.js +1 -1
- package/{test → src}/loader.spec.js +2 -2
- package/{test → src}/min-err.spec.js +2 -2
- package/src/public.js +46 -43
- package/{test → src}/public.spec.js +2 -2
- package/{test/router → src/router/common}/glob.spec.js +1 -1
- package/src/router/common/glob.test.js +11 -0
- package/src/router/services.js +0 -1
- package/{test → src}/router/services.spec.js +2 -2
- package/src/router/state/state-service.js +1 -1
- package/{test/router/ng-state-builder.spec.js → src/router/state-builder.spec.js} +1 -1
- package/{test → src}/router/state-directives.spec.js +3 -3
- package/{test → src}/router/state-filter.spec.js +2 -2
- package/{test → src}/router/state.spec.js +5 -5
- package/{test → src}/router/template-factory.spec.js +3 -3
- package/src/router/transition/transition-hook.js +1 -1
- package/{test → src}/router/url-service.spec.js +4 -4
- package/{test → src}/router/view-directive.spec.js +3 -3
- package/{test → src}/router/view-hook.spec.js +3 -3
- package/{test → src}/router/view-scroll.spec.js +3 -3
- package/{test → src}/router/view.spec.js +12 -12
- package/src/services/browser.js +4 -4
- package/src/services/cache-factory.js +5 -11
- package/src/services/{http.js → http/http.js} +5 -6
- package/{test/core → src/services/http}/http.spec.js +3 -3
- package/{test/core → src/services/http}/template-request.spec.js +2 -2
- package/src/services/{http-backend.js → http-backend/http-backend.js} +2 -2
- package/{test/core → src/services/http-backend}/http-backend.spec.js +3 -3
- package/src/services/template-request.js +1 -1
- package/{test → src}/shared/common.spec.js +4 -4
- package/{test → src}/shared/hof.spec.js +1 -1
- package/{test → src}/shared/strings.spec.js +1 -1
- package/{test → src/shared}/test-utils.js +1 -1
- package/src/shared/utils.js +3 -18
- package/{test → src}/shared/utils.spec.js +1 -1
- package/tsconfig.json +1 -1
- package/types/animations/animate-cache.d.ts +12 -0
- package/types/animations/animate-children-directive.d.ts +84 -0
- package/types/animations/animate-swap.d.ts +103 -0
- package/types/animations/animation.d.ts +14 -0
- package/types/animations/module.d.ts +750 -0
- package/types/animations/raf-scheduler.d.ts +5 -0
- package/types/animations/shared.d.ts +65 -0
- package/types/constants.d.ts +18 -0
- package/types/core/animate-css.d.ts +25 -0
- package/types/core/cache.d.ts +25 -0
- package/types/core/compile.d.ts +206 -0
- package/types/core/controller.d.ts +42 -0
- package/types/core/exception-handler.d.ts +46 -0
- package/types/core/filter.d.ts +9 -0
- package/types/core/interpolate.d.ts +83 -0
- package/types/core/interval-factory.d.ts +21 -0
- package/types/core/interval.d.ts +4 -0
- package/types/core/location.d.ts +234 -0
- package/types/core/pubsub.d.ts +164 -0
- package/types/core/q.d.ts +33 -0
- package/types/core/root-scope.d.ts +754 -0
- package/types/core/sanitize-uri.d.ts +57 -0
- package/types/core/sce.d.ts +432 -0
- package/types/core/task-tracker-factory.d.ts +50 -0
- package/types/core/timeout.d.ts +31 -0
- package/types/core/urlUtils.d.ts +98 -0
- package/types/directive/attrs.d.ts +176 -0
- package/types/directive/bind.d.ts +21 -0
- package/types/directive/change.d.ts +4 -0
- package/types/directive/class.d.ts +125 -0
- package/types/directive/cloak.d.ts +4 -0
- package/types/directive/controller.d.ts +6 -0
- package/types/directive/events.d.ts +12 -0
- package/types/directive/form.d.ts +230 -0
- package/types/directive/if.d.ts +17 -0
- package/types/directive/include.d.ts +33 -0
- package/types/directive/init.d.ts +4 -0
- package/types/directive/input.d.ts +192 -0
- package/types/directive/list.d.ts +4 -0
- package/types/directive/model.d.ts +672 -0
- package/types/directive/non-bindable.d.ts +5 -0
- package/types/directive/options.d.ts +16 -0
- package/types/directive/ref.d.ts +11 -0
- package/types/directive/repeat.d.ts +23 -0
- package/types/directive/script.d.ts +23 -0
- package/types/directive/show-hide.d.ts +234 -0
- package/types/directive/style.d.ts +4 -0
- package/types/directive/switch.d.ts +23 -0
- package/types/directive/transclude.d.ts +15 -0
- package/types/directive/validators.d.ts +173 -0
- package/types/exts/aria.d.ts +1 -0
- package/types/exts/messages.d.ts +1 -0
- package/types/filters/filter.d.ts +4 -0
- package/types/filters/filters.d.ts +38 -0
- package/types/filters/limit-to.d.ts +4 -0
- package/types/filters/order-by.d.ts +11 -0
- package/types/jqLite.d.ts +57 -0
- package/types/router/common/coreservices.d.ts +4 -0
- package/types/router/common/glob.d.ts +60 -0
- package/types/router/common/queue.d.ts +15 -0
- package/types/router/common/trace.d.ts +72 -0
- package/types/router/directives/view-directive.d.ts +160 -0
- package/types/router/globals.d.ts +30 -0
- package/types/router/hooks/core-resolvables.d.ts +2 -0
- package/types/router/hooks/ignored-transition.d.ts +1 -0
- package/types/router/hooks/invalid-transition.d.ts +1 -0
- package/types/router/hooks/lazy-load.d.ts +42 -0
- package/types/router/hooks/on-enter-exit-retain.d.ts +3 -0
- package/types/router/hooks/redirect-to.d.ts +4 -0
- package/types/router/hooks/resolve.d.ts +4 -0
- package/types/router/hooks/update-globals.d.ts +1 -0
- package/types/router/hooks/url.d.ts +5 -0
- package/types/router/hooks/views.d.ts +5 -0
- package/types/router/index.d.ts +1 -18
- package/types/router/injectables.d.ts +1 -0
- package/types/router/params/param-factory.d.ts +8 -0
- package/types/router/params/param-type.d.ts +65 -0
- package/types/router/params/param-types.d.ts +36 -0
- package/types/router/params/param.d.ts +41 -0
- package/types/router/params/state-params.d.ts +12 -0
- package/types/router/path/path-node.d.ts +45 -0
- package/types/router/path/path-utils.d.ts +83 -0
- package/types/router/resolve/resolvable.d.ts +50 -0
- package/types/router/resolve/resolve-context.d.ts +102 -0
- package/types/router/services.d.ts +12 -13
- package/types/router/state/state-builder.d.ts +89 -0
- package/types/router/state/state-matcher.d.ts +7 -0
- package/types/router/state/state-object.d.ts +72 -0
- package/types/router/state/state-queue-manager.d.ts +19 -0
- package/types/router/state/state-registry.d.ts +118 -0
- package/types/router/state/state-service.d.ts +419 -0
- package/types/router/state/target-state.d.ts +102 -0
- package/types/router/state/views.d.ts +50 -0
- package/types/router/state-filters.d.ts +15 -0
- package/types/router/state-provider.d.ts +123 -0
- package/types/router/template-factory.d.ts +124 -0
- package/types/router/transition/hook-builder.d.ts +40 -0
- package/types/router/transition/hook-registry.d.ts +102 -0
- package/types/router/transition/interface.d.ts +11 -0
- package/types/router/transition/reject-factory.d.ts +42 -0
- package/types/router/transition/transition-event-type.d.ts +24 -0
- package/types/router/transition/transition-hook.d.ts +86 -0
- package/types/router/transition/transition-service.d.ts +115 -0
- package/types/router/transition/transition.d.ts +390 -0
- package/types/router/url/url-config.d.ts +100 -0
- package/types/router/url/url-matcher.d.ts +175 -0
- package/types/router/url/url-rule.d.ts +146 -0
- package/types/router/url/url-rules.d.ts +229 -0
- package/types/router/url/url-service.d.ts +278 -0
- package/types/router/view/view.d.ts +137 -0
- package/types/router/view-scroll.d.ts +5 -0
- package/types/services/anchor-scroll.d.ts +11 -0
- package/types/services/browser.d.ts +150 -0
- package/types/services/cache-factory.d.ts +143 -0
- package/types/services/cookie-reader.d.ts +17 -0
- package/types/services/document.d.ts +38 -0
- package/types/services/http-backend.d.ts +78 -0
- package/types/services/http.d.ts +157 -0
- package/types/services/log.d.ts +63 -0
- package/types/services/template-request.d.ts +69 -0
- package/types/shared/common.d.ts +216 -0
- package/types/shared/hof.d.ts +131 -0
- package/types/shared/predicates.d.ts +15 -0
- package/types/shared/strings.d.ts +55 -0
- package/types/shared/utils.d.ts +630 -0
- package/types-back/README.md +2 -0
- package/{types → types-back}/index.d.ts +62 -45
- package/types-back/router/index.d.ts +17 -0
- package/{types → types-back}/router/interface.d.ts +0 -1
- package/{types → types-back}/router/legacy/resolveService.d.ts +0 -1
- package/{types → types-back}/router/legacy/stateEvents.d.ts +2 -1
- package/types-back/router/services.d.ts +15 -0
- package/{types → types-back}/router/stateFilters.d.ts +0 -1
- package/{types → types-back}/router/stateProvider.d.ts +0 -1
- package/{types → types-back}/router/statebuilders/onEnterExitRetain.d.ts +0 -1
- package/e2e/unit.spec.ts +0 -16
- package/public/my_other_directive.html +0 -1
- package/src/directive/if.md +0 -80
- package/test/build-test.html +0 -14
- package/test/mock-test.html +0 -13
- package/test/module-test.html +0 -58
- package/types/router/locationServices.d.ts +0 -50
- /package/{test → public}/jasmine/jasmine-5.1.2/boot0.js +0 -0
- /package/{test → public}/jasmine/jasmine-5.1.2/boot1.js +0 -0
- /package/{test → public}/jasmine/jasmine-5.1.2/jasmine-html.js +0 -0
- /package/{test → public}/jasmine/jasmine-5.1.2/jasmine.css +0 -0
- /package/{test → public}/jasmine/jasmine-5.1.2/jasmine.js +0 -0
- /package/{test → public}/jasmine/jasmine-5.1.2/jasmine_favicon.png +0 -0
- /package/{test → public}/jasmine/jasmine-browser.json +0 -0
- /package/{test → public}/jasmine/jasmine.json +0 -0
- /package/public/{README.md → public/README.md} +0 -0
- /package/public/{circle.html → public/circle.html} +0 -0
- /package/public/{my_child_directive.html → public/my_child_directive.html} +0 -0
- /package/public/{my_directive.html → public/my_directive.html} +0 -0
- /package/public/{test.html → public/test.html} +0 -0
- /package/src/core/{animate-css.js → animate/animate-css.js} +0 -0
- /package/src/core/{cache.js → cache/cache.js} +0 -0
- /package/src/core/{compile.md → compile/compile.md} +0 -0
- /package/src/core/{filter.md → filter/filter.md} +0 -0
- /package/src/core/{interval.md → interval/interval.md} +0 -0
- /package/src/core/{pubsub.js → pubsub/pubsub.js} +0 -0
- /package/src/directive/{bind.md → bind/bind.md} +0 -0
- /package/src/directive/{change.js → change/change.js} +0 -0
- /package/src/directive/{change.md → change/change.md} +0 -0
- /package/src/directive/{cloak.js → cloak/cloak.js} +0 -0
- /package/src/directive/{cloak.md → cloak/cloak.md} +0 -0
- /package/src/directive/{controller.js → controller/controller.js} +0 -0
- /package/src/directive/{controller.md → controller/controller.md} +0 -0
- /package/src/directive/{events.md → events/events.md} +0 -0
- /package/src/directive/{include.md → include/include.md} +0 -0
- /package/src/directive/{init.js → init/init.js} +0 -0
- /package/src/directive/{init.md → init/init.md} +0 -0
- /package/src/directive/{list.md → list/list.md} +0 -0
- /package/src/directive/{non-bindable.js → non-bindable/non-bindable.js} +0 -0
- /package/src/directive/{non-bindable.md → non-bindable/non-bindable.md} +0 -0
- /package/src/directive/{repeat.md → repeat/repeat.md} +0 -0
- /package/src/directive/{script.js → script/script.js} +0 -0
- /package/src/directive/{show-hide.js → show-hide/show-hide.js} +0 -0
- /package/src/directive/{style.js → style/style.js} +0 -0
- /package/src/directive/{style.md → style/style.md} +0 -0
- /package/src/directive/{switch.md → switch/switch.md} +0 -0
- /package/{test/module-test.js → src/services/http/http.html} +0 -0
- /package/src/{constants.js → shared/constants.js} +0 -0
- /package/{types → types-back}/angular.d.ts +0 -0
- /package/{types → types-back}/global.d.ts +0 -0
- /package/{types → types-back}/jqlite.d.ts +0 -0
- /package/{types → types-back}/router/core/common/common.d.ts +0 -0
- /package/{types → types-back}/router/core/common/coreservices.d.ts +0 -0
- /package/{types → types-back}/router/core/common/glob.d.ts +0 -0
- /package/{types → types-back}/router/core/common/hof.d.ts +0 -0
- /package/{types → types-back}/router/core/common/index.d.ts +0 -0
- /package/{types → types-back}/router/core/common/predicates.d.ts +0 -0
- /package/{types → types-back}/router/core/common/queue.d.ts +0 -0
- /package/{types → types-back}/router/core/common/safeConsole.d.ts +0 -0
- /package/{types → types-back}/router/core/common/strings.d.ts +0 -0
- /package/{types → types-back}/router/core/common/trace.d.ts +0 -0
- /package/{types → types-back}/router/core/globals.d.ts +0 -0
- /package/{types → types-back}/router/core/hooks/coreResolvables.d.ts +0 -0
- /package/{types → types-back}/router/core/hooks/ignoredTransition.d.ts +0 -0
- /package/{types → types-back}/router/core/hooks/invalidTransition.d.ts +0 -0
- /package/{types → types-back}/router/core/hooks/lazyLoad.d.ts +0 -0
- /package/{types → types-back}/router/core/hooks/onEnterExitRetain.d.ts +0 -0
- /package/{types → types-back}/router/core/hooks/redirectTo.d.ts +0 -0
- /package/{types → types-back}/router/core/hooks/resolve.d.ts +0 -0
- /package/{types → types-back}/router/core/hooks/updateGlobals.d.ts +0 -0
- /package/{types → types-back}/router/core/hooks/url.d.ts +0 -0
- /package/{types → types-back}/router/core/hooks/views.d.ts +0 -0
- /package/{types → types-back}/router/core/index.d.ts +0 -0
- /package/{types → types-back}/router/core/interface.d.ts +0 -0
- /package/{types → types-back}/router/core/params/index.d.ts +0 -0
- /package/{types → types-back}/router/core/params/interface.d.ts +0 -0
- /package/{types → types-back}/router/core/params/param.d.ts +0 -0
- /package/{types → types-back}/router/core/params/paramType.d.ts +0 -0
- /package/{types → types-back}/router/core/params/paramTypes.d.ts +0 -0
- /package/{types → types-back}/router/core/params/stateParams.d.ts +0 -0
- /package/{types → types-back}/router/core/path/index.d.ts +0 -0
- /package/{types → types-back}/router/core/path/pathNode.d.ts +0 -0
- /package/{types → types-back}/router/core/path/pathUtils.d.ts +0 -0
- /package/{types → types-back}/router/core/resolve/index.d.ts +0 -0
- /package/{types → types-back}/router/core/resolve/interface.d.ts +0 -0
- /package/{types → types-back}/router/core/resolve/resolvable.d.ts +0 -0
- /package/{types → types-back}/router/core/resolve/resolveContext.d.ts +0 -0
- /package/{types → types-back}/router/core/router.d.ts +0 -0
- /package/{types → types-back}/router/core/state/index.d.ts +0 -0
- /package/{types → types-back}/router/core/state/interface.d.ts +0 -0
- /package/{types → types-back}/router/core/state/stateBuilder.d.ts +0 -0
- /package/{types → types-back}/router/core/state/stateMatcher.d.ts +0 -0
- /package/{types → types-back}/router/core/state/stateObject.d.ts +0 -0
- /package/{types → types-back}/router/core/state/stateQueueManager.d.ts +0 -0
- /package/{types → types-back}/router/core/state/stateRegistry.d.ts +0 -0
- /package/{types → types-back}/router/core/state/stateService.d.ts +0 -0
- /package/{types → types-back}/router/core/state/targetState.d.ts +0 -0
- /package/{types → types-back}/router/core/transition/hookBuilder.d.ts +0 -0
- /package/{types → types-back}/router/core/transition/hookRegistry.d.ts +0 -0
- /package/{types → types-back}/router/core/transition/index.d.ts +0 -0
- /package/{types → types-back}/router/core/transition/interface.d.ts +0 -0
- /package/{types → types-back}/router/core/transition/rejectFactory.d.ts +0 -0
- /package/{types → types-back}/router/core/transition/transition.d.ts +0 -0
- /package/{types → types-back}/router/core/transition/transitionEventType.d.ts +0 -0
- /package/{types → types-back}/router/core/transition/transitionHook.d.ts +0 -0
- /package/{types → types-back}/router/core/transition/transitionService.d.ts +0 -0
- /package/{types → types-back}/router/core/url/index.d.ts +0 -0
- /package/{types → types-back}/router/core/url/interface.d.ts +0 -0
- /package/{types → types-back}/router/core/url/urlConfig.d.ts +0 -0
- /package/{types → types-back}/router/core/url/urlMatcher.d.ts +0 -0
- /package/{types → types-back}/router/core/url/urlMatcherFactory.d.ts +0 -0
- /package/{types → types-back}/router/core/url/urlRouter.d.ts +0 -0
- /package/{types → types-back}/router/core/url/urlRule.d.ts +0 -0
- /package/{types → types-back}/router/core/url/urlRules.d.ts +0 -0
- /package/{types → types-back}/router/core/url/urlService.d.ts +0 -0
- /package/{types → types-back}/router/core/view/index.d.ts +0 -0
- /package/{types → types-back}/router/core/view/interface.d.ts +0 -0
- /package/{types → types-back}/router/core/view/view.d.ts +0 -0
- /package/{types → types-back}/router/directives/viewDirective.d.ts +0 -0
- /package/{types → types-back}/router/statebuilders/views.d.ts +0 -0
- /package/{types → types-back}/router/templateFactory.d.ts +0 -0
- /package/{types → types-back}/router/viewScroll.d.ts +0 -0
- /package/{test/server → utils}/express.js +0 -0
|
@@ -16,6 +16,7 @@ export as namespace ng;
|
|
|
16
16
|
export = angular;
|
|
17
17
|
|
|
18
18
|
import ng = angular;
|
|
19
|
+
import { Obj } from "./router";
|
|
19
20
|
|
|
20
21
|
///////////////////////////////////////////////////////////////////////////////
|
|
21
22
|
// ng module (angular.js)
|
|
@@ -104,7 +105,7 @@ declare namespace angular {
|
|
|
104
105
|
* @param directiveFactory An injectable directive factory function.
|
|
105
106
|
*/
|
|
106
107
|
directive<
|
|
107
|
-
TScope extends
|
|
108
|
+
TScope extends Scope = Scope,
|
|
108
109
|
TElement extends JQLite = JQLite,
|
|
109
110
|
TAttributes extends IAttributes = IAttributes,
|
|
110
111
|
TController extends IDirectiveController = IController,
|
|
@@ -115,7 +116,7 @@ declare namespace angular {
|
|
|
115
116
|
>,
|
|
116
117
|
): IModule;
|
|
117
118
|
directive<
|
|
118
|
-
TScope extends
|
|
119
|
+
TScope extends Scope = Scope,
|
|
119
120
|
TElement extends JQLite = JQLite,
|
|
120
121
|
TAttributes extends IAttributes = IAttributes,
|
|
121
122
|
TController extends IDirectiveController = IController,
|
|
@@ -380,14 +381,34 @@ declare namespace angular {
|
|
|
380
381
|
* $rootScope - $rootScopeProvider - service in module ng
|
|
381
382
|
* see https://docs.angularjs.org/api/ng/type/$rootScope.Scope and https://docs.angularjs.org/api/ng/service/$rootScope
|
|
382
383
|
*/
|
|
383
|
-
|
|
384
|
+
class Scope {
|
|
385
|
+
$id: number;
|
|
386
|
+
$parent: Scope | null;
|
|
387
|
+
$root: Scope | null;
|
|
388
|
+
$$destroyed: boolean;
|
|
389
|
+
$$isolateBindings: any;
|
|
390
|
+
$$phase: any;
|
|
391
|
+
|
|
392
|
+
$$watchers?: any[];
|
|
393
|
+
$$nextSibling: Scope | null;
|
|
394
|
+
$$prevSibling: Scope | null;
|
|
395
|
+
$$childHead: Scope | null;
|
|
396
|
+
$$childTail: Scope | null;
|
|
397
|
+
$$ChildScope: Scope | null;
|
|
398
|
+
$$watchersCount: number;
|
|
399
|
+
$$digestWatchIndex: number;
|
|
400
|
+
$$suspended: boolean;
|
|
401
|
+
|
|
402
|
+
$$listeners: Object;
|
|
403
|
+
$$listenerCount: Object;
|
|
404
|
+
|
|
384
405
|
$apply(): any;
|
|
385
|
-
$apply(
|
|
386
|
-
$apply(
|
|
406
|
+
$apply(expr: string): any;
|
|
407
|
+
$apply(expr: (scope: Scope) => any): any;
|
|
387
408
|
|
|
388
409
|
$applyAsync(): any;
|
|
389
410
|
$applyAsync(exp: string): any;
|
|
390
|
-
$applyAsync(exp: (scope:
|
|
411
|
+
$applyAsync(exp: (scope: Scope) => any): any;
|
|
391
412
|
|
|
392
413
|
/**
|
|
393
414
|
* Dispatches an event name downwards to all child scopes (and their children) notifying the registered $rootScope.Scope listeners.
|
|
@@ -400,6 +421,11 @@ declare namespace angular {
|
|
|
400
421
|
* @param args Optional one or more arguments which will be passed onto the event listeners.
|
|
401
422
|
*/
|
|
402
423
|
$broadcast(name: string, ...args: any[]): IAngularEvent;
|
|
424
|
+
private beginPhase(number): void;
|
|
425
|
+
private clearPhase(): void;
|
|
426
|
+
private $$postDigest(): void;
|
|
427
|
+
private incrementWatchersCount(number): void;
|
|
428
|
+
private decrementListenerCount(number, string): void;
|
|
403
429
|
$destroy(): void;
|
|
404
430
|
$digest(): void;
|
|
405
431
|
|
|
@@ -486,14 +512,14 @@ declare namespace angular {
|
|
|
486
512
|
|
|
487
513
|
$eval(): any;
|
|
488
514
|
$eval(expression: string, locals?: Object): any;
|
|
489
|
-
$eval(expression: (scope:
|
|
515
|
+
$eval(expression: (scope: Scope) => any, locals?: Object): any;
|
|
490
516
|
|
|
491
517
|
$evalAsync(): void;
|
|
492
518
|
$evalAsync(expression: string, locals?: Object): void;
|
|
493
|
-
$evalAsync(expression: (scope:
|
|
519
|
+
$evalAsync(expression: (scope: Scope) => void, locals?: Object): void;
|
|
494
520
|
|
|
495
521
|
// Defaults to false by the implementation checking strategy
|
|
496
|
-
$new(isolate?: boolean, parent?:
|
|
522
|
+
$new(isolate?: boolean, parent?: Scope): Scope;
|
|
497
523
|
|
|
498
524
|
/**
|
|
499
525
|
* Listens on events of a given type. See $emit for discussion of event life cycle.
|
|
@@ -515,55 +541,46 @@ declare namespace angular {
|
|
|
515
541
|
): () => void;
|
|
516
542
|
$watch<T>(
|
|
517
543
|
watchExpression: string,
|
|
518
|
-
listener?: (newValue: T, oldValue: T, scope:
|
|
544
|
+
listener?: (newValue: T, oldValue: T, scope: Scope) => any,
|
|
519
545
|
objectEquality?: boolean,
|
|
520
546
|
): () => void;
|
|
521
547
|
$watch(
|
|
522
|
-
watchExpression: (scope:
|
|
548
|
+
watchExpression: (scope: Scope) => any,
|
|
523
549
|
listener?: string,
|
|
524
550
|
objectEquality?: boolean,
|
|
525
551
|
): () => void;
|
|
526
552
|
$watch<T>(
|
|
527
|
-
watchExpression: (scope:
|
|
528
|
-
listener?: (newValue: T, oldValue: T, scope:
|
|
553
|
+
watchExpression: (scope: Scope) => T,
|
|
554
|
+
listener?: (newValue: T, oldValue: T, scope: Scope) => any,
|
|
529
555
|
objectEquality?: boolean,
|
|
530
556
|
): () => void;
|
|
531
557
|
|
|
532
558
|
$watchCollection<T>(
|
|
533
559
|
watchExpression: string,
|
|
534
|
-
listener: (newValue: T, oldValue: T, scope:
|
|
560
|
+
listener: (newValue: T, oldValue: T, scope: Scope) => any,
|
|
535
561
|
): () => void;
|
|
536
562
|
$watchCollection<T>(
|
|
537
|
-
watchExpression: (scope:
|
|
538
|
-
listener: (newValue: T, oldValue: T, scope:
|
|
563
|
+
watchExpression: (scope: Scope) => T,
|
|
564
|
+
listener: (newValue: T, oldValue: T, scope: Scope) => any,
|
|
539
565
|
): () => void;
|
|
540
566
|
|
|
541
567
|
$watchGroup(
|
|
542
568
|
watchExpressions: any[],
|
|
543
|
-
listener: (newValue: any, oldValue: any, scope:
|
|
569
|
+
listener: (newValue: any, oldValue: any, scope: Scope) => any,
|
|
544
570
|
): () => void;
|
|
545
571
|
$watchGroup(
|
|
546
|
-
watchExpressions: Array<{ (scope:
|
|
547
|
-
listener: (newValue: any, oldValue: any, scope:
|
|
572
|
+
watchExpressions: Array<{ (scope: Scope): any }>,
|
|
573
|
+
listener: (newValue: any, oldValue: any, scope: Scope) => any,
|
|
548
574
|
): () => void;
|
|
549
|
-
|
|
550
|
-
$parent: IScope;
|
|
551
|
-
$root: IScope;
|
|
552
|
-
$id: number;
|
|
553
|
-
|
|
554
|
-
// Hidden members
|
|
555
|
-
$$isolateBindings: any;
|
|
556
|
-
$$phase: any;
|
|
557
|
-
$$destroyed: boolean;
|
|
558
575
|
}
|
|
559
576
|
|
|
560
|
-
interface IRootScopeService extends
|
|
577
|
+
interface IRootScopeService extends Scope {}
|
|
561
578
|
|
|
562
579
|
/**
|
|
563
580
|
* $scope for ngRepeat directive.
|
|
564
581
|
* see https://docs.angularjs.org/api/ng/directive/ngRepeat
|
|
565
582
|
*/
|
|
566
|
-
interface IRepeatScope extends
|
|
583
|
+
interface IRepeatScope extends Scope {
|
|
567
584
|
/**
|
|
568
585
|
* iterator offset of the repeated element (0..length-1).
|
|
569
586
|
*/
|
|
@@ -599,11 +616,11 @@ declare namespace angular {
|
|
|
599
616
|
/**
|
|
600
617
|
* the scope on which the event was $emit-ed or $broadcast-ed.
|
|
601
618
|
*/
|
|
602
|
-
targetScope:
|
|
619
|
+
targetScope: Scope;
|
|
603
620
|
/**
|
|
604
621
|
* the scope that is currently handling the event. Once the event propagates through the scope hierarchy, this property is set to null.
|
|
605
622
|
*/
|
|
606
|
-
currentScope:
|
|
623
|
+
currentScope: Scope;
|
|
607
624
|
/**
|
|
608
625
|
* name of the event.
|
|
609
626
|
*/
|
|
@@ -913,8 +930,8 @@ declare namespace angular {
|
|
|
913
930
|
///////////////////////////////////////////////////////////////////////////
|
|
914
931
|
interface IParseService {
|
|
915
932
|
(
|
|
916
|
-
expression: string,
|
|
917
|
-
interceptorFn?: (value: any, scope:
|
|
933
|
+
expression: string | ((scope: Scope) => any),
|
|
934
|
+
interceptorFn?: (value: any, scope: Scope, locals: any) => any,
|
|
918
935
|
expensiveChecks?: boolean,
|
|
919
936
|
): ICompiledExpression;
|
|
920
937
|
}
|
|
@@ -1457,7 +1474,7 @@ declare namespace angular {
|
|
|
1457
1474
|
|
|
1458
1475
|
interface ICompileProvider extends IServiceProvider {
|
|
1459
1476
|
directive<
|
|
1460
|
-
TScope extends
|
|
1477
|
+
TScope extends Scope = Scope,
|
|
1461
1478
|
TElement extends JQLite = JQLite,
|
|
1462
1479
|
TAttributes extends IAttributes = IAttributes,
|
|
1463
1480
|
TController extends IDirectiveController = IController,
|
|
@@ -1468,7 +1485,7 @@ declare namespace angular {
|
|
|
1468
1485
|
>,
|
|
1469
1486
|
): ICompileProvider;
|
|
1470
1487
|
directive<
|
|
1471
|
-
TScope extends
|
|
1488
|
+
TScope extends Scope = Scope,
|
|
1472
1489
|
TElement extends JQLite = JQLite,
|
|
1473
1490
|
TAttributes extends IAttributes = IAttributes,
|
|
1474
1491
|
TController extends IDirectiveController = IController,
|
|
@@ -1543,13 +1560,13 @@ declare namespace angular {
|
|
|
1543
1560
|
|
|
1544
1561
|
interface ICloneAttachFunction {
|
|
1545
1562
|
// Let's hint but not force cloneAttachFn's signature
|
|
1546
|
-
(clonedElement?: JQLite, scope?:
|
|
1563
|
+
(clonedElement?: JQLite, scope?: Scope): any;
|
|
1547
1564
|
}
|
|
1548
1565
|
|
|
1549
1566
|
// This corresponds to the "publicLinkFn" returned by $compile.
|
|
1550
1567
|
interface ITemplateLinkingFunction {
|
|
1551
1568
|
(
|
|
1552
|
-
scope:
|
|
1569
|
+
scope: Scope,
|
|
1553
1570
|
cloneAttachFn?: ICloneAttachFunction,
|
|
1554
1571
|
options?: ITemplateLinkingFunctionOptions,
|
|
1555
1572
|
): JQLite;
|
|
@@ -1573,7 +1590,7 @@ declare namespace angular {
|
|
|
1573
1590
|
interface ITranscludeFunction {
|
|
1574
1591
|
// If the scope is provided, then the cloneAttachFn must be as well.
|
|
1575
1592
|
(
|
|
1576
|
-
scope:
|
|
1593
|
+
scope: Scope,
|
|
1577
1594
|
cloneAttachFn: ICloneAttachFunction,
|
|
1578
1595
|
futureParentElement?: JQLite,
|
|
1579
1596
|
slotName?: string,
|
|
@@ -1601,7 +1618,7 @@ declare namespace angular {
|
|
|
1601
1618
|
* The minimal local definitions required by $controller(ctrl, locals) calls.
|
|
1602
1619
|
*/
|
|
1603
1620
|
interface IControllerLocals {
|
|
1604
|
-
$scope: ng.
|
|
1621
|
+
$scope: ng.Scope;
|
|
1605
1622
|
$element: JQLite;
|
|
1606
1623
|
}
|
|
1607
1624
|
|
|
@@ -2268,7 +2285,7 @@ declare namespace angular {
|
|
|
2268
2285
|
| { [key: string]: IController };
|
|
2269
2286
|
|
|
2270
2287
|
interface IDirectiveFactory<
|
|
2271
|
-
TScope extends
|
|
2288
|
+
TScope extends Scope = Scope,
|
|
2272
2289
|
TElement extends JQLite = JQLite,
|
|
2273
2290
|
TAttributes extends IAttributes = IAttributes,
|
|
2274
2291
|
TController extends IDirectiveController = IController,
|
|
@@ -2281,7 +2298,7 @@ declare namespace angular {
|
|
|
2281
2298
|
}
|
|
2282
2299
|
|
|
2283
2300
|
interface IDirectiveLinkFn<
|
|
2284
|
-
TScope extends
|
|
2301
|
+
TScope extends Scope = Scope,
|
|
2285
2302
|
TElement extends JQLite = JQLite,
|
|
2286
2303
|
TAttributes extends IAttributes = IAttributes,
|
|
2287
2304
|
TController extends IDirectiveController = IController,
|
|
@@ -2296,7 +2313,7 @@ declare namespace angular {
|
|
|
2296
2313
|
}
|
|
2297
2314
|
|
|
2298
2315
|
interface IDirectivePrePost<
|
|
2299
|
-
TScope extends
|
|
2316
|
+
TScope extends Scope = Scope,
|
|
2300
2317
|
TElement extends JQLite = JQLite,
|
|
2301
2318
|
TAttributes extends IAttributes = IAttributes,
|
|
2302
2319
|
TController extends IDirectiveController = IController,
|
|
@@ -2310,7 +2327,7 @@ declare namespace angular {
|
|
|
2310
2327
|
}
|
|
2311
2328
|
|
|
2312
2329
|
interface IDirectiveCompileFn<
|
|
2313
|
-
TScope extends
|
|
2330
|
+
TScope extends Scope = Scope,
|
|
2314
2331
|
TElement extends JQLite = JQLite,
|
|
2315
2332
|
TAttributes extends IAttributes = IAttributes,
|
|
2316
2333
|
TController extends IDirectiveController = IController,
|
|
@@ -2332,7 +2349,7 @@ declare namespace angular {
|
|
|
2332
2349
|
}
|
|
2333
2350
|
|
|
2334
2351
|
interface IDirective<
|
|
2335
|
-
TScope extends
|
|
2352
|
+
TScope extends Scope = Scope,
|
|
2336
2353
|
TElement extends JQLite = JQLite,
|
|
2337
2354
|
TAttributes extends IAttributes = IAttributes,
|
|
2338
2355
|
TController extends IDirectiveController = IController,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Main entry point for angular 1.x build
|
|
3
|
+
*/ /** */
|
|
4
|
+
export * from "./interface";
|
|
5
|
+
export * from "./services";
|
|
6
|
+
export * from "./statebuilders/views";
|
|
7
|
+
export * from "./stateProvider";
|
|
8
|
+
import "./injectables";
|
|
9
|
+
import "./directives/stateDirectives";
|
|
10
|
+
import "./stateFilters";
|
|
11
|
+
import "./directives/viewDirective";
|
|
12
|
+
import "./viewScroll";
|
|
13
|
+
declare const _default: "router";
|
|
14
|
+
export default _default;
|
|
15
|
+
import * as core from "./core/index";
|
|
16
|
+
export { core };
|
|
17
|
+
export * from "./core/index";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IRootScopeService } from "../";
|
|
2
|
+
import { ResolveContext, TypedMap } from "./core";
|
|
3
|
+
import { StateProvider } from "./stateProvider";
|
|
4
|
+
declare module "./core/lib/router" {
|
|
5
|
+
interface Router {
|
|
6
|
+
/** @hidden */
|
|
7
|
+
stateProvider: StateProvider;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare function watchDigests($rootScope: IRootScopeService): void;
|
|
11
|
+
export declare namespace watchDigests {
|
|
12
|
+
var $inject: string[];
|
|
13
|
+
}
|
|
14
|
+
/** @hidden TODO: find a place to move this */
|
|
15
|
+
export declare const getLocals: (ctx: ResolveContext) => TypedMap<any>;
|
package/e2e/unit.spec.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { test, expect } from '@playwright/test';
|
|
2
|
-
|
|
3
|
-
test('unit tests contain no errors', async ({ page }) => {
|
|
4
|
-
await page.goto('/');
|
|
5
|
-
|
|
6
|
-
await page.content();
|
|
7
|
-
// on average 15-17 seconds
|
|
8
|
-
// TODO break these up
|
|
9
|
-
await page.waitForTimeout(20000);
|
|
10
|
-
//await page.screenshot({ path: 'errors-view.png' , fullPage: true });
|
|
11
|
-
// Expect a jasmine bar to contain 0 failures
|
|
12
|
-
console.log(await page.content());
|
|
13
|
-
await expect(page.locator('.jasmine-overall-result')).toHaveText(/0 failures/);
|
|
14
|
-
|
|
15
|
-
});
|
|
16
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<div my-other-directive></div>
|
package/src/directive/if.md
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/\*\*
|
|
2
|
-
|
|
3
|
-
- @ngdoc directive
|
|
4
|
-
- @name ngIf
|
|
5
|
-
- @restrict A
|
|
6
|
-
- @multiElement
|
|
7
|
-
-
|
|
8
|
-
- @description
|
|
9
|
-
- The `ngIf` directive removes or recreates a portion of the DOM tree based on an
|
|
10
|
-
- {expression}. If the expression assigned to `ngIf` evaluates to a false
|
|
11
|
-
- value then the element is removed from the DOM, otherwise a clone of the
|
|
12
|
-
- element is reinserted into the DOM.
|
|
13
|
-
-
|
|
14
|
-
- `ngIf` differs from `ngShow` and `ngHide` in that `ngIf` completely removes and recreates the
|
|
15
|
-
- element in the DOM rather than changing its visibility via the `display` css property. A common
|
|
16
|
-
- case when this difference is significant is when using css selectors that rely on an element's
|
|
17
|
-
- position within the DOM, such as the `:first-child` or `:last-child` pseudo-classes.
|
|
18
|
-
-
|
|
19
|
-
- Note that when an element is removed using `ngIf` its scope is destroyed and a new scope
|
|
20
|
-
- is created when the element is restored. The scope created within `ngIf` inherits from
|
|
21
|
-
- its parent scope using
|
|
22
|
-
- [prototypal inheritance](https://github.com/angular/angular.js/wiki/Understanding-Scopes#javascript-prototypal-inheritance).
|
|
23
|
-
- An important implication of this is if `ngModel` is used within `ngIf` to bind to
|
|
24
|
-
- a javascript primitive defined in the parent scope. In this case any modifications made to the
|
|
25
|
-
- variable within the child scope will override (hide) the value in the parent scope.
|
|
26
|
-
-
|
|
27
|
-
- Also, `ngIf` recreates elements using their compiled state. An example of this behavior
|
|
28
|
-
- is if an element's class attribute is directly modified after it's compiled, using something like
|
|
29
|
-
- jQuery's `.addClass()` method, and the element is later removed. When `ngIf` recreates the element
|
|
30
|
-
- the added class will be lost because the original compiled state is used to regenerate the element.
|
|
31
|
-
-
|
|
32
|
-
- Additionally, you can provide animations via the `ngAnimate` module to animate the `enter`
|
|
33
|
-
- and `leave` effects.
|
|
34
|
-
-
|
|
35
|
-
- @animations
|
|
36
|
-
- | Animation | Occurs |
|
|
37
|
-
- |----------------------------------|-------------------------------------|
|
|
38
|
-
- | {@link ng.$animate#enter enter} | just after the `ngIf` contents change and a new DOM element is created and injected into the `ngIf` container |
|
|
39
|
-
- | {@link ng.$animate#leave leave} | just before the `ngIf` contents are removed from the DOM |
|
|
40
|
-
-
|
|
41
|
-
- @element ANY
|
|
42
|
-
- @scope
|
|
43
|
-
- @priority 600
|
|
44
|
-
- @param {string} ngIf If the {@link guide/expression expression} is falsy then
|
|
45
|
-
- the element is removed from the DOM tree. If it is truthy a copy of the compiled
|
|
46
|
-
- element is added to the DOM tree.
|
|
47
|
-
-
|
|
48
|
-
- @example
|
|
49
|
-
<example module="ngAnimate" deps="angular-animate.js" animations="true" name="ng-if">
|
|
50
|
-
<file name="index.html">
|
|
51
|
-
<label>Click me: <input type="checkbox" ng-model="checked" ng-init="checked=true" /></label><br/>
|
|
52
|
-
Show when checked:
|
|
53
|
-
<span ng-if="checked" class="animate-if">
|
|
54
|
-
This is removed when the checkbox is unchecked.
|
|
55
|
-
</span>
|
|
56
|
-
</file>
|
|
57
|
-
<file name="animations.css">
|
|
58
|
-
.animate-if {
|
|
59
|
-
background:white;
|
|
60
|
-
border:1px solid black;
|
|
61
|
-
padding:10px;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.animate-if.ng-enter, .animate-if.ng-leave {
|
|
65
|
-
transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.animate-if.ng-enter,
|
|
69
|
-
.animate-if.ng-leave.ng-leave-active {
|
|
70
|
-
opacity:0;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.animate-if.ng-leave,
|
|
74
|
-
.animate-if.ng-enter.ng-enter-active {
|
|
75
|
-
opacity:1;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
</file>
|
|
79
|
-
</example>
|
|
80
|
-
*/
|
package/test/build-test.html
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html ng-app>
|
|
3
|
-
<head>
|
|
4
|
-
<script src="../dist/angular-ts.umd.js"></script>
|
|
5
|
-
</head>
|
|
6
|
-
<body>
|
|
7
|
-
<div>
|
|
8
|
-
<label>Name:</label>
|
|
9
|
-
<input type="text" ng-model="yourName" placeholder="Enter a name here" />
|
|
10
|
-
<hr />
|
|
11
|
-
<h1>Hello {{yourName}}!</h1>
|
|
12
|
-
</div>
|
|
13
|
-
</body>
|
|
14
|
-
</html>
|
package/test/mock-test.html
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html ng-app>
|
|
3
|
-
<head>
|
|
4
|
-
<script src="../dist/build/angular.js"></script>
|
|
5
|
-
<script src="../dist/build/angular-mocks.js"></script>
|
|
6
|
-
</head>
|
|
7
|
-
<body ng-init="val = true">
|
|
8
|
-
<button ng-click="val=!val">Click me</button> {{ val}}
|
|
9
|
-
<div>
|
|
10
|
-
<div ng-include="'/mock/interpolation'"></div>
|
|
11
|
-
</div>
|
|
12
|
-
</body>
|
|
13
|
-
</html>
|
package/test/module-test.html
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<script></script>
|
|
5
|
-
<script type="module" src="../src/index.js"></script>
|
|
6
|
-
<script>
|
|
7
|
-
document.addEventListener("DOMContentLoaded", () => {
|
|
8
|
-
var myApp = window.angular.module("test", ["ng.router"]);
|
|
9
|
-
myApp
|
|
10
|
-
.config(function ($stateProvider) {
|
|
11
|
-
$stateProvider
|
|
12
|
-
.state({ name: "top", url: "" })
|
|
13
|
-
.state({ name: "other", url: "/other/:id", template: "other" })
|
|
14
|
-
.state({
|
|
15
|
-
name: "other.detail",
|
|
16
|
-
url: "/detail",
|
|
17
|
-
template: "detail",
|
|
18
|
-
})
|
|
19
|
-
.state({
|
|
20
|
-
name: "contacts",
|
|
21
|
-
url: "/contacts",
|
|
22
|
-
template:
|
|
23
|
-
'<a ng-sref=".item({ id: 5 })" class="item">Person</a> <ng-view></ng-view>',
|
|
24
|
-
})
|
|
25
|
-
.state({
|
|
26
|
-
name: "contacts.item",
|
|
27
|
-
url: "/{id:int}",
|
|
28
|
-
template:
|
|
29
|
-
'<a ng-sref=".detail" class="item-detail">Detail</a> | <a ng-sref="^" class="item-parent">Parent</a> | <ng-view></ng-view>',
|
|
30
|
-
})
|
|
31
|
-
.state({
|
|
32
|
-
name: "contacts.item.detail",
|
|
33
|
-
url: "/{id}",
|
|
34
|
-
template:
|
|
35
|
-
'<div class="title">Detail</div> | <a ng-sref="^" class="item-parent2">Item</a>',
|
|
36
|
-
});
|
|
37
|
-
})
|
|
38
|
-
.controller(
|
|
39
|
-
"TestController",
|
|
40
|
-
class {
|
|
41
|
-
constructor($q) {
|
|
42
|
-
const defer = $q.defer();
|
|
43
|
-
this.contact = defer.promise;
|
|
44
|
-
this.test = 1;
|
|
45
|
-
defer.resolve({ id: 6 });
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
);
|
|
49
|
-
});
|
|
50
|
-
</script>
|
|
51
|
-
</head>
|
|
52
|
-
<body ng-app="test">
|
|
53
|
-
<div ng-controller="TestController as $ctrl">
|
|
54
|
-
{{$ctrl.test}}
|
|
55
|
-
<a ng-sref="contacts.item.detail({ id: contact.id })">Details</a>
|
|
56
|
-
</div>
|
|
57
|
-
</body>
|
|
58
|
-
</html>
|
|
@@ -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
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|