11.1.99 • Published 2 years ago

@2sic.com/dnn-sxc-angular v11.1.99

Weekly downloads
601
License
MIT
Repository
github
Last release
2 years ago

dnn-sxc-angular - Connecting Angular to DNN and/or 2sxc

This is a connector for angular 8+ (git | web) for developers using

  1. the open source platform DNN 7+ (git | web)
  2. and/or the open source CMS 2sxc 10+ (git | web)

This connector does

  1. allows you to develop from local while running with hot-reload on a DNN, even on the production site
  2. automatically provides all important dnn-parameters (module ID, security token, etc.) to angular
  3. adds an Http Interceptor for the HttpClient which automatically applies these parameters to all requests
  4. gives you quick commands like data.query$ to get data with little effort from the server
  5. prevents the enter-key from causing DNN form submits (optional, you can override this)

It uses observables to make it happen, thereby avoiding timing / async problems common in this scenario.

Setup & Discover Dnn-Sxc-Angular

It's published on npm, so the most common way is to get it using npm with npm install "@2sic.com/dnn-sxc-angular" --save. But we recommend that you follow the quick-start guide.

  1. Start discovery using the tutorial app - ideally using the getting started recipe
  2. If you've already mastered the basics and wish to build your own, you can
    1. Rename the tutorial app and continue working with that
    2. or modify an existing app to work with the same conventions

How To Use

Using WebAPIs inside DNN

This will now work automatically, because all headers etc. are now automatically added by the system. So just use your normal http-requests and everything works like magic :)

Using 2sxc Content-Items, Queries and APIs

This package contains a Data object, which provides 3 observable streams

  • content$
  • query$
  • api$

To use them, best check out the tutorial app or simply work through TypeScript intelisense - we documented all the commands.

Getting ModuleId, TabId, etc. and the sxc Instance

There is a Context object which provides these properties as streams (observables). Just inject Context and access it from there. Note that you almost never need this, as the HttpClient is already configured and ready to go, including the headers it needs.

  • moduleId$
  • tabId$
  • sxc$
  • etc. (there are about 3 more...)

Internal Notes

Todo

  • enhance the content-manager to provide write commands (ATM read-only)
11.1.99-beta.1

2 years ago

11.1.99-beta.0

2 years ago

11.1.2-beta.0

2 years ago

11.1.2-beta.2

2 years ago

11.1.99

2 years ago

11.1.2

3 years ago

11.1.2-beta.1

3 years ago

11.1.1

3 years ago

11.1.0-beta.3

3 years ago

11.1.0-beta.2

3 years ago

11.1.0-beta.1

3 years ago

11.1.0

3 years ago

11.0.6

3 years ago

11.0.7

3 years ago

11.0.5

3 years ago

11.0.4

3 years ago

11.0.2

3 years ago

11.0.3

3 years ago

11.0.0-alpha01

3 years ago

11.0.0

3 years ago

11.0.1

3 years ago

11.0.0-alpha.5

3 years ago

11.0.0-alpha.2

3 years ago

11.0.0-alpha.3

3 years ago

11.0.0-alpha.4

3 years ago

10.25.5

4 years ago

10.25.4

4 years ago

10.25.4-pre.2

4 years ago

10.25.4-pre.1

4 years ago

10.25.3

4 years ago

10.25.3-pre5

4 years ago

10.25.3-pre4

4 years ago

10.25.3-pre3

4 years ago

10.25.3-pre1

4 years ago

10.25.3-pre2

4 years ago

10.25.2

4 years ago

8.10.2

4 years ago

8.10.1

4 years ago

10.25.2-rc.4

4 years ago

10.25.2-rc.2

4 years ago

10.25.2-rc.1

4 years ago

8.0.5

5 years ago

8.0.4

5 years ago

8.0.2

5 years ago

8.0.1

5 years ago

8.0.0

5 years ago

6.0.8

5 years ago

6.0.7

5 years ago

6.0.6

5 years ago

6.0.5

5 years ago

6.0.4

5 years ago

6.0.3

5 years ago

6.0.2

5 years ago

6.0.1

6 years ago

6.0.0

6 years ago

1.8.7

6 years ago

1.8.6

6 years ago

1.8.5

6 years ago

1.8.4

6 years ago

1.8.3

6 years ago

1.8.2

6 years ago

1.8.1

6 years ago

1.8.0

6 years ago

1.7.9

6 years ago

1.7.8

6 years ago

1.7.7

6 years ago

1.7.6

6 years ago

1.7.5

6 years ago

1.7.3

6 years ago

1.7.2

6 years ago

1.7.1

6 years ago

1.7.0

6 years ago

1.6.9

6 years ago

1.6.8

6 years ago

1.6.7

6 years ago

1.6.6

6 years ago

1.6.5

6 years ago

1.6.4

6 years ago

1.6.3

6 years ago

1.6.2

6 years ago

1.6.1

7 years ago

1.6.0

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.5

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago