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

folder_sharedDnn-Sxc-Angular 11 (for Angular 6-11)

  • homeChecklisten-Vorlagen
  • south
  • fiber_manual_recordPro: Develop with 2sxc (Apps, Content-Types, Templates, etc.)
  • south
  • fiber_manual_recordJS: Angular Apps Development
  • south

folder_sharedDnn-Sxc-Angular 11 (for Angular 6-11)

Ordner und Checklisten

  • folder_sharedToolbars
  • check_circlednn-sxc-angular - Quick Start
  • check_circlednn-sxc-angular - Tutorial - Accessing Content using REST and content$
  • check_circleEnable local development in an existing 2sxc / DNN / Angular 11 app
  • check_circleTemplate Angular 11 App - Getting started
  • check_circleTemplate Angular 11 App - Install and Discover
  • check_circleTemplate Angular 11 App - Rename the App

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. 

! The steps below can differ for your app, so be careful.

  • Prepare the app
    • In a file explorer, navigate to your app's root folder (e.g. /Portals/0/2sxc/MyFancyApp)
    • Move all Angular related files to a new subfolder ng 
    • If you have an api folder, move it to a new folder dev 
    • Add .gitignore and _AngularApp.cshtml from https://github.com/2sic/app-template-angular to the root of your application
    • Copy the file publish.js from https://github.com/2sic/app-template-angular/tree/master/ng to your ng folder
    • Modify package.json to allow local development and publishing - you can view the template's package.json for reference
      • Open the file [app-folder]/ng/package.json 
      • Below the versions attribute, add a new node config with the content:
        { "publish_path": ".." } 
      • Change the script/start node to ng serve --public-host localhost:4200 --disable-host-check - this will allow the app to request the local development files while running Angular development server
      • Add the following scripts to the scripts node:
        "publish-staging": "ng build --prod && node publish.js staging",
        "publish-live": "ng build --prod && node publish.js live"
    • Add the required dependencies to your app
      • Run npm install cpx del --save-dev to install the new dependencies
  • Build and publish the app
    • Run npm run publish-staging and npm run publish-live and check if a folder [app-root]/staging is created - if not, something is wrong
  • Login to DNN as host user, open the management of your app and change the app's view template to the new file _AngularApp.cshtml 
  • Make sure the app works again
  • Remove old files like _Index.cshtml 
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/BgOY2BmS
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 normales Dokument, es wird normal angezeigt und erscheint in der Suche.

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