Skip to content

Commit

Permalink
feat: javascript and angular docs refactor with integration-interface…
Browse files Browse the repository at this point in the history
… docs (#6)
  • Loading branch information
markuczy authored Dec 10, 2024
1 parent 5089853 commit 2328dca
Show file tree
Hide file tree
Showing 7 changed files with 479 additions and 9 deletions.
9 changes: 0 additions & 9 deletions docs/modules/angular/nav.adoc

This file was deleted.

10 changes: 10 additions & 0 deletions docs/modules/angular/partials/nav.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

* xref:angular:general/index.adoc[General]
** xref:angular:general/guidelines.adoc[Guidelines]
* Cookbook
* xref:angular:ngrx/ngrx.adoc[NgRx]
* Libraries
** xref:angular:libraries/symlink.adoc[How to create a SymLink]
** xref:angular:libraries/angular-integration-interface.adoc[@onecx/angular-integration-interface]
** xref:angular:libraries/workingWithSharedLibraries.adoc[]
9 changes: 9 additions & 0 deletions docs/modules/javascript/nav.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
* Javascript
** xref:general/index.adoc[General]
*** Libraries
**** xref:libraries/integration-interface.adoc[@onecx/integration-interface]
** Angular
+
--
include::angular:partial$nav.adoc[]
--
13 changes: 13 additions & 0 deletions docs/modules/javascript/pages/general/index.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
= Javascript

== Resources

* Javascript
** xref:general/index.adoc[General]
*** Libraries
**** xref:libraries/integration-interface.adoc[@onecx/integration-interface]
** Angular
+
--
include::angular:partial$nav.adoc[]
--
438 changes: 438 additions & 0 deletions docs/modules/javascript/pages/libraries/integration-interface.adoc

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NOTE: For Angular based applications xref:angular-integration-interface.adoc#app_state_service[`@onecx/angular-integration-interface` offers an Injectable AppStateService service] exposing functions usefull when dealing with application state management.
8 changes: 8 additions & 0 deletions docs/modules/javascript/partials/topic.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
A Topic is a similar concept to an Observable. They operate on messages passed between UI Apps using browser memory. Each topic:

* has unique name
* has version
* can publish new message
* can be subscribed to and piped for handling new messages
* can be destroyed to prevent listening to new messages
With multiple UI Apps having the same Topic instantiated (with the same name), they can communicate with each other based on the publisher-subscriber model. Whenever any Topic instance publishes new message, subscribers for all instances will read the message eventually allowing them to react on new information.

0 comments on commit 2328dca

Please sign in to comment.