New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

The Community Blog is a personal opinion of community members and by no means the official standpoint of DNN Corp or DNN Platform. This is a place to express personal thoughts about DNNPlatform, the community and its ecosystem. Do you have useful information that you would like to share with the DNN Community in a featured article or blog? If so, please contact .

The use of the Community Blog is covered by our Community Blog Guidelines - please read before commenting or posting.

Welcome Angular 4! And Angular CLI, AOT and Universal!

A big day has arrived - Angular 4 is out, together with the Angular CLI (yes: WebPack, AOT, etc.). So no more Beta, RC or whatever - it's here!

Why Angular 4 after AngularJS 2?

So just a few basics before we start:

  • AngularJS 1 /2 /4 is now just called Angular - this is to standardize documentation language etc. - so no more ...JS - just Angular
  • Angular 2 was a large step from AngularJS 1, so it was explicitly mentioned for a long time. The future Versions of Angular will be much more alligned so the version number will be dropped, especially because there will be a new version every 6 months...
  • ...yes, every 6 months a new main version. Angular is now utilizing a clear, Semantic-Versioning system - so the roadmap is a new main version every half year. 
  • And: Angular 3 was explicitly skipped, because some parts in Angular 2 already had version 3. To get the versions synced, they set everything to 4.

My First Impression

I immediately started creating my first Angular 4 App for DNN - and I was amazed!!!

Compared to the setup in Angular 2 with SystemJS, the new setup using the CLI and  WebPack was a breeze! I had my first DNN/2sxc/Angular4-App running in 15 minutes, and it felt amazing!

You can try my new Hello DNN app here, or just check out the code in the GitHub repo

BTW: Yes, it's super-fast :) 

This is (officially) new in Angular 4

Here are the official highlights of V4

  1. smaller, faster code 
  2. major improvements in AOT (Ahead of Time compilation)
  3. major improvements to Angular Universal (server-side Angular applications)
  4. if/else syntax in templates

+ a few more technical features like FESM or template source-maps. Read more about it in the official release post.

This is IMHO what's important

So in my personal opinion, Angular 4 has a much more important meaning:

  1. The CLI is finally stable, meaning that there is now an official way to develop. This workflow is important, because it means people will work in the same way. 
  2. Now that the CLI is stable, it also means that Angular will now fully adopt WebPack instead of SystemJS as the preferred way of transpiling and bundling. 
  3. Which brings us to AOT - this sounds cryptic, but it's essential when using Angular with DNN. It's the component which will take all your stuff and merge it into a few compressed, optimized, re-usable .js files. 

Basically I believe that now Angular 2+ is finally fit for real DNN projects. With Angular 2 I was very hesitant to start, because much of it felt unfinished. All the code-samples felt like moving targets, because the "best practice" was slippery at best, and kept changing. Now with Angular 4 it finally feels right. So for us (2sic / 2sxc) we will start creating production grade apps right away!

Where are the Tutorials & Docs?

There are still missing - and if you read the official web site, you'll notice that they do start the learning-section with the CLI, but most of the documentation is not updated yet! So basically to get started, best focus on the CLI documentation

When do we get Angular Material?

Basically Angular would work with any CSS including Bootstrap, Foundation etc. but as it's often used for creating applications it really needs a solid application / GUI style framework. And Bootstrap doesn't really work that way. So ATM we're all waiting for Angular Material, and (in my personal opinion) they have just been waiting for 4.0 to become final. My opinion is supported by the fact that they introduced breaking changes to animation related functionality from Angular 2 to 4.

So I believe Angular Material, which is currently Beta 2, should be out within the next 8 weeks. My opinion is supported by the large issue-resolving rate. But it's not official yet, so no promises here.

Shall we start using it?

IMHO Absolutely! I just created my first app in 15 minutes and we'll create our first production apps during the next few weeks and I hope to have some tutorials out ASAP :)

Love from Switzerland,

Daniel Mettler grew up in the jungles of Indonesia and is founder and CEO of 2sic internet solutions in Switzerland and Liechtenstein, an 20-head web specialist with over 800 DNN projects since 1999. He is also chief architect of 2sxc (see forge), an open source module for creating attractive content and DNN Apps.

Read more posts by Daniel Mettler


Hello Daniel,

Great work as always. I am in the process of developing a production angular 4 / dnn 9 app (using telerik kendo ui for visuals) and I have also broken my app out into modules that get lazy loaded through routes. Does your app support that. I can see from the git repot that you hard code the inline.js etc files but there are no chucnk[0] files there. How would you handle that. Also, were you able to get AOT working properly. I found there are still some issues with the AOT compiler. And lastly how have you captured the required DNN settings/variables for use in your app, or is that caught with your 2sxc wrapper? It would be nice if there was a place developers could talk about these issues, not sure where the best place for that would be.

Jordan Tuesday, April 4, 2017 3:11 PM (link)
Arjan Pottjewijd
Hi Daniel,

Did you ever got this to work correctly? As soon as you have an Angular application using forms it will break the DNN site. DNN is web forms and already has a form tag, as soon as the Angular component is registering form tags as well everything will break. It's fun for a "Hello world" application, but any content editing using forms within the angular module will be an issue.

Also, how would you pass DNN data to the angular module? How would the angular module know the user that is logged in, what tab it is installed to, anything about user rights etc.?

We are struggling to get this to work correctly, documentation about the subject is hard to find, so thank you for all the work you have been doing on this!

Best regards,

Arjan Pottjewijd Thursday, December 21, 2017 3:59 PM (link)
Daniel Mettler
@Arjan - you posted this question on both blogs - I answered it in the other one.
Daniel Mettler Friday, December 22, 2017 8:51 AM (link)
Patrik Johansson
@Daniel A link to the other blog/post please :)
Patrik Johansson Saturday, April 28, 2018 12:10 PM (link)

Comment Form

Only registered users may post comments.


Aderson Oliveira (22)
Alec Whittington (11)
Alessandra Daniels (3)
Alex Shirley (10)
Andrew Hoefling (3)
Andrew Nurse (30)
Andy Tryba (1)
Anthony Glenwright (5)
Antonio Chagoury (28)
Ash Prasad (37)
Ben Schmidt (1)
Benjamin Hermann (25)
Benoit Sarton (9)
Beth Firebaugh (12)
Bill Walker (36)
Bob Kruger (5)
Bogdan Litescu (1)
Brian Dukes (2)
Brice Snow (1)
Bruce Chapman (20)
Bryan Andrews (1)
cathal connolly (55)
Charles Nurse (163)
Chris Hammond (213)
Chris Paterra (55)
Clint Patterson (108)
Cuong Dang (21)
Daniel Bartholomew (2)
Daniel Mettler (181)
Daniel Valadas (48)
Dave Buckner (2)
David Poindexter (12)
David Rodriguez (3)
Dennis Shiao (1)
Doug Howell (11)
Erik van Ballegoij (30)
Ernst Peter Tamminga (80)
Francisco Perez Andres (17)
Geoff Barlow (12)
George Alatrash (12)
Gifford Watkins (3)
Gilles Le Pigocher (3)
Ian Robinson (7)
Israel Martinez (17)
Jan Blomquist (2)
Jan Jonas (3)
Jaspreet Bhatia (1)
Jenni Merrifield (6)
Joe Brinkman (274)
John Mitchell (1)
Jon Henning (14)
Jonathan Sheely (4)
Jordan Coopersmith (1)
Joseph Craig (2)
Kan Ma (1)
Keivan Beigi (3)
Kelly Ford (4)
Ken Grierson (10)
Kevin Schreiner (6)
Leigh Pointer (31)
Lorraine Young (60)
Malik Khan (1)
Matt Rutledge (2)
Matthias Schlomann (16)
Mauricio Márquez (5)
Michael Doxsey (7)
Michael Tobisch (3)
Michael Washington (202)
Miguel Gatmaytan (3)
Mike Horton (19)
Mitchel Sellers (40)
Nathan Rover (3)
Navin V Nagiah (14)
Néstor Sánchez (31)
Nik Kalyani (14)
Oliver Hine (1)
Patricio F. Salinas (1)
Patrick Ryan (1)
Peter Donker (54)
Philip Beadle (135)
Philipp Becker (4)
Richard Dumas (22)
Robert J Collins (5)
Roger Selwyn (8)
Ruben Lopez (1)
Ryan Martinez (1)
Sacha Trauwaen (1)
Salar Golestanian (4)
Sanjay Mehrotra (9)
Scott McCulloch (1)
Scott Schlesier (11)
Scott Wilkinson (3)
Scott Willhite (97)
Sebastian Leupold (80)
Shaun Walker (237)
Shawn Mehaffie (17)
Stefan Cullmann (12)
Stefan Kamphuis (12)
Steve Fabian (31)
Steven Fisher (1)
Tony Henrich (3)
Torsten Weggen (3)
Tycho de Waard (4)
Vicenç Masanas (27)
Vincent Nguyen (3)
Vitaly Kozadayev (6)
Will Morgenweck (40)
Will Strohl (180)
William Severance (5)
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out