DNN Community Blog

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 Angular.io, 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


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

Comments

Jordan
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)

Comment Form

Only registered users may post comments.

NewsArchives


Aderson Oliveira (15)
Alec Whittington (11)
Alex Shirley (10)
Andrew Nurse (30)
Andy Tryba (1)
Anthony Glenwright (5)
Antonio Chagoury (28)
Ash Prasad (32)
Ben Schmidt (1)
Benjamin Hermann (25)
Benoit Sarton (9)
Beth Firebaugh (12)
Bill Walker (36)
Bob Kruger (5)
Brian Dukes (2)
Brice Snow (1)
Bruce Chapman (20)
Bryan Andrews (1)
cathal connolly (55)
Charles Nurse (163)
Chris Hammond (209)
Chris Paterra (55)
Clinton Patterson (36)
Cuong Dang (21)
Daniel Bartholomew (2)
Daniel Mettler (151)
Dave Buckner (2)
David Poindexter (4)
David Rodriguez (3)
Doug Howell (11)
Erik van Ballegoij (30)
Ernst Peter Tamminga (74)
Geoff Barlow (10)
George Alatrash (6)
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)
Ken Grierson (10)
Kevin Schreiner (6)
Leigh Pointer (31)
Lorraine Young (60)
Malik Khan (1)
Matthias Schlomann (15)
Mauricio Márquez (5)
Michael Doxsey (7)
Michael Tobisch (3)
Michael Washington (202)
Miguel Gatmaytan (3)
Mike Horton (19)
Mitchel Sellers (28)
Nathan Rover (3)
Navin V Nagiah (14)
Néstor Sánchez (31)
Nik Kalyani (14)
Peter Donker (53)
Philip Beadle (135)
Philipp Becker (4)
Richard Dumas (22)
Robert J Collins (5)
Roger Selwyn (8)
Ruben Lopez (1)
Ryan Martinez (1)
Salar Golestanian (4)
Sanjay Mehrotra (9)
Scott McCulloch (1)
Scott S (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)
Timo Breumelhof (24)
Tony Henrich (3)
Torsten Weggen (2)
Vicenç Masanas (27)
Vincent Nguyen (3)
Vitaly Kozadayev (6)
Will Morgenweck (40)
Will Strohl (165)
William Severance (5)

Content Layout

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out