@angular-wave/angular.ts 0.7.4 → 0.7.5

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.
Files changed (44) hide show
  1. package/Makefile +1 -1
  2. package/dist/angular-ts.esm.js +23 -26
  3. package/dist/angular-ts.umd.js +23 -26
  4. package/dist/angular-ts.umd.min.js +1 -1
  5. package/docs/content/docs/_index.md +7 -6
  6. package/docs/content/docs/directive/blur.md +38 -0
  7. package/docs/content/docs/directive/channel.md +1 -3
  8. package/docs/content/docs/directive/class-even.md +3 -3
  9. package/docs/content/docs/directive/class-odd.md +4 -4
  10. package/docs/content/docs/directive/class.md +7 -7
  11. package/docs/content/docs/directive/click.md +38 -0
  12. package/docs/content/docs/directive/cloak.md +4 -8
  13. package/docs/content/docs/directive/copy.md +38 -0
  14. package/docs/content/docs/directive/cut.md +40 -0
  15. package/docs/content/docs/directive/dblclick.md +38 -0
  16. package/docs/content/docs/directive/focus.md +38 -0
  17. package/docs/content/docs/directive/keyup.md +0 -0
  18. package/docs/content/docs/directive/load.md +0 -0
  19. package/docs/content/docs/directive/mousedown.md +38 -0
  20. package/docs/content/docs/directive/mouseenter.md +38 -0
  21. package/docs/content/docs/directive/mouseleave.md +38 -0
  22. package/docs/content/docs/directive/mousemove.md +38 -0
  23. package/docs/content/docs/directive/mouseout.md +38 -0
  24. package/docs/content/docs/directive/mouseover.md +38 -0
  25. package/docs/content/docs/directive/mouseup.md +38 -0
  26. package/docs/layouts/404.html +1 -1
  27. package/docs/static/examples/eventbus/eventbus.js +1 -1
  28. package/docs/static/examples/ng-blur/ng-blur.html +9 -0
  29. package/docs/static/examples/ng-click/ng-click.html +6 -0
  30. package/docs/static/examples/ng-copy/ng-copy.html +6 -0
  31. package/docs/static/examples/ng-cut/ng-cut.html +6 -0
  32. package/docs/static/examples/ng-dblclick/ng-dblclick.html +10 -0
  33. package/docs/static/examples/ng-focus/ng-focus.html +9 -0
  34. package/docs/static/examples/ng-mousedown/ng-mousedown.html +6 -0
  35. package/docs/static/examples/ng-mouseenter/ng-mouseenter.html +4 -0
  36. package/docs/static/examples/ng-mouseleave/ng-mouseleave.html +4 -0
  37. package/docs/static/examples/ng-mousemove/ng-mousemove.html +4 -0
  38. package/docs/static/examples/ng-mouseout/ng-mouseout.html +4 -0
  39. package/docs/static/examples/ng-mouseover/ng-mouseover.html +4 -0
  40. package/docs/static/examples/ng-mouseup/ng-mouseup.html +4 -0
  41. package/package.json +1 -1
  42. package/src/directive/events/events.js +21 -24
  43. package/src/directive/observe/{test.html → observe-demo.html} +0 -1
  44. /package/docs/{static/examples/ng-class/ng-class.js → content/docs/directive/keydown.md} +0 -0
@@ -16,7 +16,7 @@ in the meantime.
16
16
 
17
17
  AngularTS is buildless, type-safe and reactive JS framework for building
18
18
  stuctured web applications at any scale. It continues the legacy of
19
- [AngularJS](https://angularjs.org/) of providing the best developer experience
19
+ [AngularJS](https://angularjs.org/) by providing the best developer experience
20
20
  via immediate productivity without the burden of JS ecosystem tooling. Getting
21
21
  started with AngularTS does not even require JavaScript. All you need is a
22
22
  little bit of HTML. Below is a canonical example of a counter:
@@ -38,6 +38,7 @@ This code demonstrates the following key AngularTS features:
38
38
  attributes--called _directives_. Here, we are using `ng-init` directive to
39
39
  initialize our application state and `ng-click` directive to add an event
40
40
  handler that changes our state.
41
+
41
42
  - **Template-driven:** AngularTS’s built-in template engine automatically keeps
42
43
  the UI in sync with your application state, eliminating the need for manual
43
44
  DOM tracking and updates. The `{{count}}` expression above is an example of
@@ -45,11 +46,11 @@ This code demonstrates the following key AngularTS features:
45
46
  our UI is updated with the new state.
46
47
 
47
48
  - **Island-first and zero-cost:** AngularTS creates an application on any HTML
48
- tag with `ng-app` attribute, allowing multiple independent applications to
49
- live on a single page. The enables AngularTS to work alongside your existing
50
- tech stack where the majority of your page is rendered on the server, while
51
- AngularTS is isolated to small “islands” (regions of your page) where custom
52
- interactivity or personalization is required.
49
+ tag with `ng-app` attribute, allowing multiple independent applications
50
+ (modules) to live on a single page. The enables AngularTS to work alongside
51
+ your existing tech stack where the majority of your page is rendered on the
52
+ server, while AngularTS is isolated to small “islands” (regions of your page)
53
+ where custom interactivity or personalization is required.
53
54
 
54
55
  - **Micro-framework appearance:** With its minimal setup, AngularTS is
55
56
  well-suited for quick experiments, LLM-generated code, and learning web
@@ -0,0 +1,38 @@
1
+ ---
2
+ title: ng-blur
3
+ description: >
4
+ Handler for blur event
5
+ ---
6
+
7
+ ### Description
8
+
9
+ The `ng-blur` directive allows you to specify custom behavior when an element
10
+ loses focus.
11
+
12
+ ### Directive parameters
13
+
14
+ ---
15
+
16
+ #### `ng-blur`
17
+
18
+ - **Type:** [Expression](../../../typedoc/types/Expression.html)
19
+ - **Description:** Expression to evaluate upon
20
+ [blur](https://developer.mozilla.org/en-US/docs/Web/API/Element/blur_event)
21
+ event.
22
+ [FocusEvent](https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent)
23
+ object is available as `$event`.
24
+ - **Example:**
25
+
26
+ ```html
27
+ <div ng-blur="$ctrl.handleBlur($event)"></div>
28
+ ```
29
+
30
+ ---
31
+
32
+ #### Demo
33
+
34
+ {{< showhtml src="examples/ng-blur/ng-blur.html" >}}
35
+
36
+ {{< showraw src="examples/ng-blur/ng-blur.html" >}}
37
+
38
+ ---
@@ -28,12 +28,10 @@ is destroyed.
28
28
  - **Type:** `string`
29
29
  - **Description:** The name of the channel to subscribe to using `$eventBus`.
30
30
 
31
- ### Example
31
+ ### Demo
32
32
 
33
33
  {{< showhtml src="examples/ng-channel/ng-channel.html" >}}
34
34
 
35
- ### Demo
36
-
37
35
  {{< showraw src="examples/ng-channel/ng-channel.html" >}}
38
36
 
39
37
  ---
@@ -38,10 +38,10 @@ to the element:
38
38
 
39
39
  ---
40
40
 
41
- ### Example
41
+ ### Demo
42
42
 
43
43
  {{< showhtml src="examples/ng-class-even/ng-class-even.html" >}}
44
44
 
45
- ### Demo
46
-
47
45
  {{< showraw src="examples/ng-class-even/ng-class-even.html" >}}
46
+
47
+ ---
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: ng-class-odd
3
3
  description: >
4
- Apply CSS classes to odd-indexed elements inside `ngRepeat`.
4
+ Apply CSS classes to odd-indexed elements inside `ng-repeat`.
5
5
  ---
6
6
 
7
7
  ### Description
@@ -39,10 +39,10 @@ to the element:
39
39
 
40
40
  ---
41
41
 
42
- ### Example
42
+ ### Demo
43
43
 
44
44
  {{< showhtml src="examples/ng-class-odd/ng-class-odd.html" >}}
45
45
 
46
- ### Demo
47
-
48
46
  {{< showraw src="examples/ng-class-odd/ng-class-odd.html" >}}
47
+
48
+ ---
@@ -10,10 +10,10 @@ The `ng-class` directive allows dynamically setting CSS classes on an HTML
10
10
  element by binding to an expression. The directive supports the following
11
11
  expression types:
12
12
 
13
- 1. **String** — space-delimited class names.
14
- 2. **Object** — keys as class names and values as booleans. Truthy values add
15
- the class.
16
- 3. **Array** — containing strings and/or objects as described above.
13
+ - **String** — space-delimited class names.
14
+ - **Object** — keys as class names and values as booleans. Truthy values add the
15
+ class.
16
+ - **Array** — containing strings and/or objects as described above.
17
17
 
18
18
  When the expression changes:
19
19
 
@@ -55,10 +55,10 @@ to the element:
55
55
  <div ng-class="{ active: isActive, disabled: isDisabled }"></div>
56
56
  ```
57
57
 
58
- ### Example
58
+ ### Demo
59
59
 
60
60
  {{< showhtml src="examples/ng-class/ng-class.html" >}}
61
61
 
62
- ### Demo
63
-
64
62
  {{< showraw src="examples/ng-class/ng-class.html" >}}
63
+
64
+ ---
@@ -0,0 +1,38 @@
1
+ ---
2
+ title: ng-click
3
+ description: >
4
+ Handler for click event
5
+ ---
6
+
7
+ ### Description
8
+
9
+ The `ng-click` directive allows you to specify custom behavior when an element
10
+ is clicked.
11
+
12
+ ### Directive parameters
13
+
14
+ ---
15
+
16
+ #### `ng-click`
17
+
18
+ - **Type:** [Expression](../../../typedoc/types/Expression.html)
19
+ - **Description:** Expression to evaluate upon
20
+ [click](https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event)
21
+ event.
22
+ [PointerEvent](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent)
23
+ object is available as `$event`.
24
+ - **Example:**
25
+
26
+ ```html
27
+ <div ng-click="$ctrl.greet($event)"></div>
28
+ ```
29
+
30
+ ---
31
+
32
+ #### Demo
33
+
34
+ {{< showhtml src="examples/ng-click/ng-click.html" >}}
35
+
36
+ {{< showraw src="examples/ng-click/ng-click.html" >}}
37
+
38
+ ---
@@ -45,7 +45,7 @@ CSS styles are available in npm distribution:
45
45
  />
46
46
  ```
47
47
 
48
- or using `style` tag:
48
+ ### Example
49
49
 
50
50
  ```html
51
51
  <style>
@@ -63,16 +63,12 @@ or using `style` tag:
63
63
  position: absolute;
64
64
  }
65
65
  </style>
66
- ```
67
-
68
- ### Example
69
-
70
- ```html
71
- <section ng-app ng-clock>These tags are invisible {{ hello }}</section>
66
+ <section ng-app ng-cloak>These tags are invisible {{ hello }}</section>
72
67
  ```
73
68
 
74
69
  ### Demo
75
70
 
76
- <section ng-app ng-clock> These tags are invisible {{ hello }} </section>
71
+ <style>@charset "UTF-8";.ng-cloak,.ng-hide:not(.ng-hide-animate),[data-ng-cloak],[ng-cloak]{display:none!important}.ng-animate-shim{visibility:hidden}.ng-anchor{position:absolute}</style>
72
+ <section ng-app ng-cloak> These tags are invisible {{ hello }} </section>
77
73
 
78
74
  ---
@@ -0,0 +1,38 @@
1
+ ---
2
+ title: ng-copy
3
+ description: >
4
+ Handler for copy event
5
+ ---
6
+
7
+ ### Description
8
+
9
+ The `ng-copy` directive allows you to specify custom behavior when an element is
10
+ copied.
11
+
12
+ ### Directive parameters
13
+
14
+ ---
15
+
16
+ #### `ng-copy`
17
+
18
+ - **Type:** [Expression](../../../typedoc/types/Expression.html)
19
+ - **Description:** Expression to evaluate upon
20
+ [copy](https://developer.mozilla.org/en-US/docs/Web/API/Element/copy_event)
21
+ event.
22
+ [ClipboardEvent](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent)
23
+ object is available as `$event`.
24
+ - **Example:**
25
+
26
+ ```html
27
+ <div contenteditable="true" ng-copy="$ctrl.greet($event)">Content</div>
28
+ ```
29
+
30
+ ---
31
+
32
+ ### Demo
33
+
34
+ {{< showhtml src="examples/ng-copy/ng-copy.html" >}}
35
+
36
+ {{< showraw src="examples/ng-copy/ng-copy.html" >}}
37
+
38
+ ---
@@ -0,0 +1,40 @@
1
+ ---
2
+ title: ng-cut
3
+ description: >
4
+ Handler for cut event
5
+ ---
6
+
7
+ ### Description
8
+
9
+ The `ng-cut` directive allows you to specify custom behavior when an element is
10
+ cut.
11
+
12
+ ### Directive parameters
13
+
14
+ ---
15
+
16
+ #### `ng-cut`
17
+
18
+ - **Type:** [Expression](../../../typedoc/types/Expression.html)
19
+ - **Description:** Expression to evaluate upon
20
+ [cut](https://developer.mozilla.org/en-US/docs/Web/API/Element/cut_event)
21
+ event.
22
+ [ClipboardEvent](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent)
23
+ object is available as `$event`.
24
+
25
+ - **Example:**
26
+
27
+ ```html
28
+ <div contenteditable="true" ng-cut="$ctrl.onCut($event)">
29
+ Cuttable content
30
+ </div>
31
+ ```
32
+
33
+ ---
34
+
35
+ ### Demo
36
+
37
+ {{< showhtml src="examples/ng-cut/ng-cut.html" >}}
38
+ {{< showraw src="examples/ng-cut/ng-cut.html" >}}
39
+
40
+ ---
@@ -0,0 +1,38 @@
1
+ ---
2
+ title: ng-dblclick
3
+ description: >
4
+ Handler for dblclick event
5
+ ---
6
+
7
+ ### Description
8
+
9
+ The `ng-dblclick` directive allows you to specify custom behavior when an
10
+ element is double clicked.
11
+
12
+ ### Directive parameters
13
+
14
+ ---
15
+
16
+ #### `ng-dblclick`
17
+
18
+ - **Type:** [Expression](../../../typedoc/types/Expression.html)
19
+ - **Description:** Expression to evaluate upon
20
+ [dblclick](https://developer.mozilla.org/en-US/docs/Web/API/Element/dblclick_event)
21
+ event.
22
+ [MouseEvent](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent)
23
+ object is available as `$event`.
24
+ - **Example:**
25
+
26
+ ```html
27
+ <div ng-dblclick="$ctrl.greet($event)"></div>
28
+ ```
29
+
30
+ ---
31
+
32
+ #### Demo
33
+
34
+ {{< showhtml src="examples/ng-dblclick/ng-dblclick.html" >}}
35
+
36
+ {{< showraw src="examples/ng-dblclick/ng-dblclick.html" >}}
37
+
38
+ ---
@@ -0,0 +1,38 @@
1
+ ---
2
+ title: ng-focus
3
+ description: >
4
+ Handler for focus event
5
+ ---
6
+
7
+ ### Description
8
+
9
+ The `ng-focus` directive allows you to specify custom behavior when an element
10
+ is focused.
11
+
12
+ ### Directive parameters
13
+
14
+ ---
15
+
16
+ #### `ng-focus`
17
+
18
+ - **Type:** [Expression](../../../typedoc/types/Expression.html)
19
+ - **Description:** Expression to evaluate upon
20
+ [focus](https://developer.mozilla.org/en-US/docs/Web/API/Element/focus_event)
21
+ event.
22
+ [FocusEvent](https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent)
23
+ object is available as `$event`.
24
+ - **Example:**
25
+
26
+ ```html
27
+ <div ng-focus="$ctrl.greet($event)"></div>
28
+ ```
29
+
30
+ ---
31
+
32
+ #### Demo
33
+
34
+ {{< showhtml src="examples/ng-focus/ng-focus.html" >}}
35
+
36
+ {{< showraw src="examples/ng-focus/ng-focus.html" >}}
37
+
38
+ ---
File without changes
File without changes
@@ -0,0 +1,38 @@
1
+ ---
2
+ title: ng-mousedown
3
+ description: >
4
+ Handler for mousedown event
5
+ ---
6
+
7
+ ### Description
8
+
9
+ The `ng-mousedown` directive allows you to specify custom behavior when a mouse
10
+ is pressed over an element.
11
+
12
+ ### Directive parameters
13
+
14
+ ---
15
+
16
+ #### `ng-mousedown`
17
+
18
+ - **Type:** [Expression](../../../typedoc/types/Expression.html)
19
+ - **Description:** Expression to evaluate upon
20
+ [mousedown](https://developer.mozilla.org/en-US/docs/Web/API/Element/mousedown_event)
21
+ event.
22
+ [MouseEvent](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent)
23
+ object is available as `$event`.
24
+ - **Example:**
25
+
26
+ ```html
27
+ <div ng-mousedown="$ctrl.greet($event)"></div>
28
+ ```
29
+
30
+ ---
31
+
32
+ #### Demo
33
+
34
+ {{< showhtml src="examples/ng-mousedown/ng-mousedown.html" >}}
35
+
36
+ {{< showraw src="examples/ng-mousedown/ng-mousedown.html" >}}
37
+
38
+ ---
@@ -0,0 +1,38 @@
1
+ ---
2
+ title: ng-mouseenter
3
+ description: >
4
+ Handler for mouseenter event
5
+ ---
6
+
7
+ ### Description
8
+
9
+ The `ng-mouseenter` directive allows you to specify custom behavior when a mouse
10
+ enters an element.
11
+
12
+ ### Directive parameters
13
+
14
+ ---
15
+
16
+ #### `ng-mouseenter`
17
+
18
+ - **Type:** [Expression](../../../typedoc/types/Expression.html)
19
+ - **Description:** Expression to evaluate upon
20
+ [mouseenter](https://developer.mozilla.org/en-US/docs/Web/API/Element/mouseenter_event)
21
+ event.
22
+ [MouseEvent](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent)
23
+ object is available as `$event`.
24
+ - **Example:**
25
+
26
+ ```html
27
+ <div ng-mouseenter="$ctrl.greet($event)"></div>
28
+ ```
29
+
30
+ ---
31
+
32
+ #### Demo
33
+
34
+ {{< showhtml src="examples/ng-mouseenter/ng-mouseenter.html" >}}
35
+
36
+ {{< showraw src="examples/ng-mouseenter/ng-mouseenter.html" >}}
37
+
38
+ ---
@@ -0,0 +1,38 @@
1
+ ---
2
+ title: ng-mouseleave
3
+ description: >
4
+ Handler for mouseleave event
5
+ ---
6
+
7
+ ### Description
8
+
9
+ The `ng-mouseleave` directive allows you to specify custom behavior when an
10
+ element a mouse leaves entire element.
11
+
12
+ ### Directive parameters
13
+
14
+ ---
15
+
16
+ #### `ng-mouseleave`
17
+
18
+ - **Type:** [Expression](../../../typedoc/types/Expression.html)
19
+ - **Description:** Expression to evaluate upon
20
+ [mouseleave](https://developer.mozilla.org/en-US/docs/Web/API/Element/mouseleave_event)
21
+ event.
22
+ [MouseEvent](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent)
23
+ object is available as `$event`.
24
+ - **Example:**
25
+
26
+ ```html
27
+ <div ng-mouseleave="$ctrl.greet($event)"></div>
28
+ ```
29
+
30
+ ---
31
+
32
+ #### Demo
33
+
34
+ {{< showhtml src="examples/ng-mouseleave/ng-mouseleave.html" >}}
35
+
36
+ {{< showraw src="examples/ng-mouseleave/ng-mouseleave.html" >}}
37
+
38
+ ---
@@ -0,0 +1,38 @@
1
+ ---
2
+ title: ng-mousemove
3
+ description: >
4
+ Handler for mousemove event
5
+ ---
6
+
7
+ ### Description
8
+
9
+ The `ng-mousemove` directive allows you to specify custom custom behavior when a
10
+ mouse is moved over an element.
11
+
12
+ ### Directive parameters
13
+
14
+ ---
15
+
16
+ #### `ng-mousemove`
17
+
18
+ - **Type:** [Expression](../../../typedoc/types/Expression.html)
19
+ - **Description:** Expression to evaluate upon
20
+ [mousemove](https://developer.mozilla.org/en-US/docs/Web/API/Element/mousemove_event)
21
+ event.
22
+ [MouseEvent](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent)
23
+ object is available as `$event`.
24
+ - **Example:**
25
+
26
+ ```html
27
+ <div ng-mousemove="$ctrl.greet($event)"></div>
28
+ ```
29
+
30
+ ---
31
+
32
+ #### Demo
33
+
34
+ {{< showhtml src="examples/ng-mousemove/ng-mousemove.html" >}}
35
+
36
+ {{< showraw src="examples/ng-mousemove/ng-mousemove.html" >}}
37
+
38
+ ---
@@ -0,0 +1,38 @@
1
+ ---
2
+ title: ng-mouseout
3
+ description: >
4
+ Handler for mouseout event
5
+ ---
6
+
7
+ ### Description
8
+
9
+ The `ng-mouseout` directive allows you to specify custom behavior when a mouse
10
+ leaves any part of the element or its children.
11
+
12
+ ### Directive parameters
13
+
14
+ ---
15
+
16
+ #### `ng-mouseout`
17
+
18
+ - **Type:** [Expression](../../../typedoc/types/Expression.html)
19
+ - **Description:** Expression to evaluate upon
20
+ [mouseout](https://developer.mozilla.org/en-US/docs/Web/API/Element/mouseout_event)
21
+ event.
22
+ [MouseEvent](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent)
23
+ object is available as `$event`.
24
+ - **Example:**
25
+
26
+ ```html
27
+ <div ng-mouseout="$ctrl.greet($event)"></div>
28
+ ```
29
+
30
+ ---
31
+
32
+ #### Demo
33
+
34
+ {{< showhtml src="examples/ng-mouseout/ng-mouseout.html" >}}
35
+
36
+ {{< showraw src="examples/ng-mouseout/ng-mouseout.html" >}}
37
+
38
+ ---
@@ -0,0 +1,38 @@
1
+ ---
2
+ title: ng-mouseover
3
+ description: >
4
+ Handler for mouseover event
5
+ ---
6
+
7
+ ### Description
8
+
9
+ The `ng-mouseover` directive allows you to specify custom behavior when a mouse
10
+ is placed over an element.
11
+
12
+ ### Directive parameters
13
+
14
+ ---
15
+
16
+ #### `ng-mouseover`
17
+
18
+ - **Type:** [Expression](../../../typedoc/types/Expression.html)
19
+ - **Description:** Expression to evaluate upon
20
+ [mouseover](https://developer.mozilla.org/en-US/docs/Web/API/Element/mouseover_event)
21
+ event.
22
+ [MouseEvent](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent)
23
+ object is available as `$event`.
24
+ - **Example:**
25
+
26
+ ```html
27
+ <div ng-mouseover="$ctrl.greet($event)"></div>
28
+ ```
29
+
30
+ ---
31
+
32
+ #### Demo
33
+
34
+ {{< showhtml src="examples/ng-mouseover/ng-mouseover.html" >}}
35
+
36
+ {{< showraw src="examples/ng-mouseover/ng-mouseover.html" >}}
37
+
38
+ ---
@@ -0,0 +1,38 @@
1
+ ---
2
+ title: ng-mouseup
3
+ description: >
4
+ Handler for mouseup event
5
+ ---
6
+
7
+ ### Description
8
+
9
+ The `ng-mouseup` directive allows you to specify custom behavior when a pressed
10
+ mouse is released over an element.
11
+
12
+ ### Directive parameters
13
+
14
+ ---
15
+
16
+ #### `ng-mouseup`
17
+
18
+ - **Type:** [Expression](../../../typedoc/types/Expression.html)
19
+ - **Description:** Expression to evaluate upon
20
+ [mouseup](https://developer.mozilla.org/en-US/docs/Web/API/Element/mouseup_event)
21
+ event.
22
+ [MouseEvent](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent)
23
+ object is available as `$event`.
24
+ - **Example:**
25
+
26
+ ```html
27
+ <div ng-mouseup="$ctrl.greet($event)"></div>
28
+ ```
29
+
30
+ ---
31
+
32
+ #### Demo
33
+
34
+ {{< showhtml src="examples/ng-mouseup/ng-mouseup.html" >}}
35
+
36
+ {{< showraw src="examples/ng-mouseup/ng-mouseup.html" >}}
37
+
38
+ ---
@@ -6,7 +6,7 @@
6
6
  <a href='{{ "" | relURL }}'>home page</a>.
7
7
  </p>
8
8
  <p>
9
- You can learn how to make a 404 page like this in
9
+ You can learn how to make a 404-page like this in
10
10
  <a href="https://gohugo.io/templates/404/">Custom 404 Pages</a>.
11
11
  </p>
12
12
  </div>
@@ -1,4 +1,4 @@
1
- angular.module('demo', []).controller(
1
+ window.angular.module('demo', []).controller(
2
2
  'DemoCtrl',
3
3
  class {
4
4
  static $inject = ['$eventBus', '$scope'];
@@ -0,0 +1,9 @@
1
+ <section ng-app>
2
+ <input
3
+ type="text"
4
+ ng-blur="count = count + 1"
5
+ ng-init="count = 0"
6
+ placeholder="Click or tab away from me"
7
+ />
8
+ Lost focus {{ count }} times
9
+ </section>