@angular-wave/angular.ts 0.0.6 → 0.0.8
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/dist/angular-ts.cjs.js +1 -1
- package/dist/angular-ts.esm.js +1 -1
- package/dist/angular-ts.umd.js +1 -1
- package/docs/.cspell.yml +8 -0
- package/docs/.github/dependabot.yml +14 -0
- package/docs/.nvmrc +1 -0
- package/docs/CONTRIBUTING.md +28 -0
- package/docs/Dockerfile +4 -0
- package/docs/LICENSE +201 -0
- package/docs/README.md +184 -0
- package/docs/assets/scss/_variables_project.scss +6 -0
- package/docs/config.yaml +15 -0
- package/docs/content/en/_index.md +77 -0
- package/docs/content/en/about/featured-background.jpg +0 -0
- package/docs/content/en/about/index.md +35 -0
- package/docs/content/en/blog/_index.md +8 -0
- package/docs/content/en/blog/news/_index.md +4 -0
- package/docs/content/en/blog/news/first-post/featured-sunset-get.png +0 -0
- package/docs/content/en/blog/news/first-post/index.md +48 -0
- package/docs/content/en/blog/news/second-post.md +244 -0
- package/docs/content/en/blog/releases/_index.md +4 -0
- package/docs/content/en/blog/releases/in-depth-monoliths-detailed-spec.md +244 -0
- package/docs/content/en/community/_index.md +6 -0
- package/docs/content/en/docs/_index.md +29 -0
- package/docs/content/en/docs/concepts/_index.md +14 -0
- package/docs/content/en/docs/contribution-guidelines/_index.md +79 -0
- package/docs/content/en/docs/examples/_index.md +13 -0
- package/docs/content/en/docs/getting-started/_index.md +35 -0
- package/docs/content/en/docs/getting-started/example-page.md +240 -0
- package/docs/content/en/docs/overview/_index.md +36 -0
- package/docs/content/en/docs/reference/_index.md +12 -0
- package/docs/content/en/docs/reference/parameter-reference.md +211 -0
- package/docs/content/en/docs/tasks/Ponycopters/_index.md +12 -0
- package/docs/content/en/docs/tasks/Ponycopters/configuring-ponycopters.md +238 -0
- package/docs/content/en/docs/tasks/Ponycopters/launching-ponycopters.md +236 -0
- package/docs/content/en/docs/tasks/_index.md +21 -0
- package/docs/content/en/docs/tasks/beds.md +237 -0
- package/docs/content/en/docs/tasks/porridge.md +237 -0
- package/docs/content/en/docs/tasks/task.md +237 -0
- package/docs/content/en/docs/tutorials/_index.md +13 -0
- package/docs/content/en/docs/tutorials/multi-bear.md +236 -0
- package/docs/content/en/docs/tutorials/tutorial2.md +236 -0
- package/docs/content/en/featured-background.jpg +0 -0
- package/docs/content/en/search.md +4 -0
- package/docs/docker-compose.yaml +13 -0
- package/docs/docsy.work +5 -0
- package/docs/docsy.work.sum +0 -0
- package/docs/go.mod +5 -0
- package/docs/go.sum +6 -0
- package/docs/hugo-disabled.toml +221 -0
- package/docs/hugo.yaml +220 -0
- package/docs/layouts/404.html +7 -0
- package/docs/layouts/_default/_markup/render-heading.html +1 -0
- package/docs/netlify.toml +12 -0
- package/docs/package.json +42 -0
- package/package.json +1 -1
- package/src/core/compile.js +15 -168
- package/src/core/compile.md +51 -16
- package/src/core/filter.js +0 -110
- package/src/core/filter.md +132 -0
- package/src/core/interval.js +0 -126
- package/src/core/interval.md +123 -0
- package/src/core/location.js +1 -2
- package/src/core/sce.js +2 -13
- package/src/injector.js +0 -630
- package/src/injector.md +740 -0
- package/src/jqLite.js +1 -1
- package/src/loader.js +1 -15
- package/src/loader.md +13 -0
- package/test/jqlite.spec.js +4 -4
- package/test/messages/messages.spec.js +1 -1
- package/test/ng/compile.spec.js +118 -316
- package/test/ng/directive/form.spec.js +8 -8
- package/src/route-to-reg-exp.js +0 -41
package/src/jqLite.js
CHANGED
|
@@ -310,7 +310,7 @@ function removeIfEmptyData(element) {
|
|
|
310
310
|
(!events || !Object.keys(events).length)
|
|
311
311
|
) {
|
|
312
312
|
CACHE.delete(expandoId);
|
|
313
|
-
element[EXPANDO] = undefined; // don't delete DOM expandos.
|
|
313
|
+
element[EXPANDO] = undefined; // don't delete DOM expandos. Chrome don't like it
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
|
package/src/loader.js
CHANGED
|
@@ -28,20 +28,6 @@ import { jqLite, startingTag } from "./jqLite";
|
|
|
28
28
|
import { createInjector } from "./injector";
|
|
29
29
|
import { CACHE } from "./core/cache";
|
|
30
30
|
|
|
31
|
-
/**
|
|
32
|
-
* @ngdoc module
|
|
33
|
-
* @name ng
|
|
34
|
-
|
|
35
|
-
* @installation
|
|
36
|
-
* @description
|
|
37
|
-
*
|
|
38
|
-
* The ng module is loaded by default when an AngularJS application is started. The module itself
|
|
39
|
-
* contains the essential components for an AngularJS application to function. The table below
|
|
40
|
-
* lists a high level breakdown of each of the services/factories, filters, directives and testing
|
|
41
|
-
* components available within this core module.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
31
|
const ngMinErr = minErr("ng");
|
|
46
32
|
|
|
47
33
|
/** @type {Object.<string, angular.IModule>} */
|
|
@@ -131,7 +117,7 @@ export class Angular {
|
|
|
131
117
|
* </html>
|
|
132
118
|
* ```
|
|
133
119
|
*
|
|
134
|
-
* @param {string | Element |
|
|
120
|
+
* @param {string | Element | Document} element DOM element which is the root of AngularJS application.
|
|
135
121
|
* @param {Array<string | Function | any[]>=} modules an array of modules to load into the application.
|
|
136
122
|
* Each item in the array should be the name of a predefined module or a (DI annotated)
|
|
137
123
|
* function that will be invoked by the injector as a `config` block.
|
package/src/loader.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/\*\*
|
|
2
|
+
|
|
3
|
+
- @ngdoc module
|
|
4
|
+
- @name ng
|
|
5
|
+
|
|
6
|
+
- @installation
|
|
7
|
+
- @description
|
|
8
|
+
-
|
|
9
|
+
- The ng module is loaded by default when an AngularJS application is started. The module itself
|
|
10
|
+
- contains the essential components for an AngularJS application to function. The table below
|
|
11
|
+
- lists a high level breakdown of each of the services/factories, filters, directives and testing
|
|
12
|
+
- components available within this core module.
|
|
13
|
+
- \*/
|
package/test/jqlite.spec.js
CHANGED
|
@@ -548,13 +548,13 @@ describe("jqLite", () => {
|
|
|
548
548
|
});
|
|
549
549
|
|
|
550
550
|
it("should not add to the cache if the node is a comment or text node", () => {
|
|
551
|
-
const initial =
|
|
551
|
+
const initial = CACHE.size;
|
|
552
552
|
const nodes = jqLite("<!-- some comment --> and some text");
|
|
553
|
-
expect(
|
|
553
|
+
expect(CACHE.size).toEqual(initial);
|
|
554
554
|
nodes.data("someKey");
|
|
555
|
-
expect(
|
|
555
|
+
expect(CACHE.size).toEqual(initial);
|
|
556
556
|
nodes.data("someKey", "someValue");
|
|
557
|
-
expect(
|
|
557
|
+
expect(CACHE.size).toEqual(initial);
|
|
558
558
|
});
|
|
559
559
|
|
|
560
560
|
it("should provide the non-wrapped data calls", () => {
|
|
@@ -827,7 +827,7 @@ describe("ngMessages", () => {
|
|
|
827
827
|
|
|
828
828
|
// // with the 2nd item gone and the values changed
|
|
829
829
|
// // we should see both 1 and 3 changed
|
|
830
|
-
// expect(element.text().trim()).toBe("
|
|
830
|
+
// expect(element.text().trim()).toBe("A");
|
|
831
831
|
|
|
832
832
|
// $rootScope.$apply(() => {
|
|
833
833
|
// // add the value for the 2nd item back
|