Update to Angular 4.0.0
Angular 4.0.0 has now been released http://angularjs.blogspot.com.au/2017/03/angular-400-now-available.html with some good improvements
It's all in here at the moment, I'm working on AoT in a different branch but having some strange issues (might be ngtools related).
It has dev & regular prod builds though, and most other things all work now. You could take it and just drop your /app folder in, don't delete the existing /app folder, as you need browser- & server-app.module files.
Hopefully have even more done today/tomorrow as ngConf starts tomorrow. @AndeyR
@MarkPieszak Thank you )
@MarkPieszak great news!!!
Starting a new project soon and I can´t wait to use the new templates for Angular 4
TIA, David
@MarkPieszak Hi, could you please be more specific on how to migrate the previous version into this new one? For example, I don't know what to do with "webpack.config.vendor.js". Thank you.
I'll have to add those (or some variation of them) back in, I was just keeping things simpler as I was trying to update everything. Getting some small issues with AoT. Takes time to get all this in there & working perfectly.
Honestly I'd wait a little bit unless you want to experience some growing pains as it evolves. Still trying to get a few things working, thankfully there's a few contributors helping with things here and there as well. There's a lot to figure out.
@MarkPieszak I see, I will wait with the upgrade until it is done. Thank you.
@MarkPieszak In which branch you guys are working? Master or ng4 or angular4.0-NEW-wip?
I just deleted those 2 branches (and any other stale/old ones), Master has the latest right now. It has a build build you can run normally, AoT build as well for when you publish or push to Azure.
Some important things left to finish, and I'd say it's good to go (at least for now) are:
- [ ] I still need to tweak & fix the aspnetcore-engine so that it uses that (instead of a temporary one inside the project)
- [ ] Add back vendor code-splitting etc
- [ ] See any other optimizations that could be made in webpack AoT prod build
- [ ] Fix bootstrap-sass icon errors happening on the browser
Does AoT in your context mean Ahead of Time?
Yes :)
Alright, was not sure ;) BTW After upgrading to VS2017, for some reason, if we make any change in TS, it get compiled(that's what browser log says) but the change is not propagated to the browser. It only happens with a TY files, if we change a Angular HTML template, all works fine. Dont you have any clue on that? ta
PS: what helps is a full VS build
@skorunka You have to add TypeScriptCompileBlocked=true to .csproj in order to stop VS to compiling .ts files:
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
More info: http://stackoverflow.com/questions/40667665/how-to-prevent-visual-studio-2017-from-build-javascript
@skorunka Strange I have that (ts block tag) in the Repo, guessing you're talking about converting/upgrading your own project to 2017
@swaner That helped! @MarkPieszak Im still using Angular2 version.
@MarkPieszak Hi Mark, how does it look with ng4 update? Thank you.
It's actually going fairly well, vendor splitting should be added sometime the next few days, I'm adding TransferData back in later tonight, which helps set the window object with things you want transferred.
You should be able to start using / playing around with it safely very soon 🎈 You could try now if you wanted to get more familiar with it, be great to have some more feedback or help from the community 🎁 Sorry for any delay its been a very busy past few weeks!
@MarkPieszak Cool! Good to hear it is going pretty well. i can not wait to upgrade to ng4 and have all the sweets in one place. I would love to contribute, but my webpack/angular knowledge is still very limited. Thank you for your hard work and keep going! Good job.
@MarkPieszak very much appreciate all the good work towards ng4.
Hello @MarkPieszak could you add some working test case also (unit test file) to use as a starting point for our own unit tests? The current one config I use (for Ang 2.4 yet so in "old" template) doesn't work. When I run Karma then Webpack claims it doesn't know Set, Map and similar definitions. It looks like an issue with a compilation against ES5 (missign ES6 libs or polyfills ???) The app starts without any problems of course (and publishing it through WebPack doesn't show any problems during building/boundling also). Maybe I just do something wrong way?
@MarkPieszak Great to hear things are going well..
No pressure, but any updates on this issue... ? We are about to start a new project and it would be great to have this...
TIA, David