Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@2sic.com/dnn-sxc-angular

Package Overview
Dependencies
Maintainers
3
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@2sic.com/dnn-sxc-angular

Connect DNN / DotNetNuke and 2sxc to Angular 6

  • 6.0.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
48
increased by1100%
Maintainers
3
Weekly downloads
 
Created
Source

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

Connector for Angular 6 / 7) for developers who use...

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

This is a helper which

  1. automatically provides all dnn-parameters (module ID, security token, etc.) to Angular
  2. adds an Http Interceptor for the HttpClient which automatically applies these parameters to all requests
  3. 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

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.

  1. Follow the quickstart guide to start using dnn-sxc-angular.
  2. To develop locally using ng serve follow these instructions

Access DNN or 2sxc WebAPIs

This works automatically, because all headers etc. are automatically added by dnn-sxc-angular.

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 demo app or simply work through TypeScript intelisense - we documented all the commands.

Get 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.

Internal Notes

Todo

  • enhance the content-manager to provide write commands (ATM read-only)

FAQs

Package last updated on 29 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc