menu
Logo
  • Warum azing?
  • Blog
  • Hilfe
DEarrow_drop_down
  • DE
  • EN
Suche in Checklisten
search
azing Logo DEarrow_drop_down
  • DE
  • EN
  • Warum azing?
  • Hilfe
2sxc
drive_folder_upload
  • homeChecklisten-Vorlagen
  • south
  • fiber_manual_recordPro: Develop with 2sxc (Apps, Content-Types, Templates, etc.)
  • south
  • fiber_manual_recordJS: Angular Apps Development
  • south
  • fiber_manual_recordPrevious Version: Dnn-Sxc-Angular 6
  • south
  • fiber_manual_recordSetup dnn-sxc-angular 6
  • south

folder_sharedSetup dnn-sxc-angular 6

  • homeChecklisten-Vorlagen
  • south
  • fiber_manual_recordPro: Develop with 2sxc (Apps, Content-Types, Templates, etc.)
  • south
  • fiber_manual_recordJS: Angular Apps Development
  • south
  • fiber_manual_recordPrevious Version: Dnn-Sxc-Angular 6
  • south
  • fiber_manual_recordSetup dnn-sxc-angular 6
  • south

folder_sharedSetup dnn-sxc-angular 6

Ordner und Checklisten

  • check_circlednn-sxc-angular - Enable ng serve development (OLD - CORS)
  • check_circlednn-sxc-angular - Quick Start
  • check_circlednn-sxc-angular - Tutorial - Accessing Content using REST and content$

Teile (0) expand_more

Teil-Dokumente werden als von anderen Checklisten wiederverwendet, sind aber nicht geeignet als Einstieg in eine Tätigkeit. Deshalb erscheinen sie weiter unten. Die Suche wird diese auch nicht anzeigen, ausser man sucht explizit nach Teilen. 

Create View to Host Angular in DNN

Do the following from within the folder which contains the app:

  1. Run npm run build to build the app. Angular will build the app into the /dist folder.
  2. Copy index.html from /dist/[app-name]/ to the root of your app and name it _Index.cshtml. We will use this file as our 2sxc template file. We can't use the index file generated by Angular, because we want to integrate it into DNN (we don't need the html, body tags etc.).
  3. Open _Index.cshtml and remove doctype, html, meta, title, link and body tags. Then adapt the path for the JavaScript files to correspond to their location, by adding @App.Path/ to the script/js tags. The file should look ca. like this:
<base href="/">
<app-root></app-root>

<script type="text/javascript" src="@App.Path/dist/my-app/runtime.js"></script>
<script type="text/javascript" src="@App.Path/dist/my-app/polyfills.js"></script>
<script type="text/javascript" src="@App.Path/dist/my-app/styles.js"></script>
<script type="text/javascript" src="@App.Path/dist/my-app/vendor.js"></script>
<script type="text/javascript" src="@App.Path/dist/my-app/main.js"></script></body>

Note: If you're building as an angular element, the list will look different, but I assume you'll know what to do if you're using elements.

Configure the View in 2sxc

  1. In DNN, add the app to a page and go to view/template configuration - there set the file (probably _index.cshtml) as your view.
  2. Now close the admin UI and in DNN, select this new view as your view and verify the output works.
Logo
Rechtliches | Inhalts-Copyright CC-BY 4.0
bug_reportFehler melden
  • info
  • Links
  • Rechte
code Teilen
code
URL in Zwischenablage kopiert.
Checkliste einbetten close
Kopieren Kopieren
Inhalts-Copyright

CC-BY 4.0

Übersetzungen

Keine

2sxc - Content Management for DNN & Oqtane Logo

2sxc - Content Management for DNN & Oqtane

QR-Code
azing.org/2sxc/r/5CNVnRAJ
Anschauen & Verwenden

Öffentlich (nutzbar für jeden)

Bearbeiten & Verwalten

Standard (alle Mitglieder können bearbeiten)

Dieser Katalog verwendet ein einfaches Berechtigungsmodell, bei dem alle Mitglieder die selben Rechte haben. Für weitere Optionen, bitte Upgraden.

Hier siehst du die Beziehungen zwischen diesem Dokument und anderen.

Verwendet in (1)

Andere, die hierhin verweisen

  1. dnn-sxc-angular - Quick Start
Verwendet diese (0)

Andere, die in diesem Dokument verwendet werden

Wie es verwendet wird

Die Kategoriesierung verändert das Verhalten des Dokuments.

Dies ist ein Teildokument. Es erscheint unter den normalen Dokumenten und die Suche zeigt es zuerst nicht an.

Es gehört zu dnn-sxc-angular - Quick Start

Typ

Das ist eine Checkliste. Listen werden zu Checkboxen umgewandelt.

Haben Sie etwas zu sagen?

Kommentieren Sie, um eine Diskussion zu beginnen oder eine Notiz zu machen
send

Bitte einloggen um zu chatten.

close

Durchsuche ganz Azing