Skip to content

Angular5 #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Nov 22, 2017
Merged

Angular5 #115

merged 10 commits into from
Nov 22, 2017

Conversation

eitanp461
Copy link
Contributor

Upgrade SDK + samples to Angular5

Fixes #114

tsconfig.json Outdated
@@ -21,6 +22,7 @@
"compiled"
],
"angularCompilerOptions": {
"strictMetadataEmit": true,
"genDir": "compiled"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we change this to "skipTemplateCodeGen": true ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strictMetadataEmit Produces an error if the metadata written for a class would produce an error if used, so I vote to keep it.
I will add "skipTemplateCodeGen": true

@@ -3,7 +3,7 @@ import {Http, Response} from '@angular/http';
import {Observable} from 'rxjs/Observable';
import 'rxjs/add/operator/map';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to rxjs/operators and use pipe (Applies to all rxjs...)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

"@angular/platform-browser-dynamic": "^5.0.1",
"@angular/platform-server": "^5.0.1",
"@angular/router": "^5.0.1",
"@cloudinary/angular-5.x": "file:../../cloudinary-angular-5.x-v1.0.0.tgz",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why file reference?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also not sure why it is
v1.0.0
instead of
1.0.0 ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's temporary, since SDK version 5 is not in NPM yet.
Referencing a non-existing file won't build (and I know that the build is borken while referencing a local file), but a missing NPM file will also corrupt package-lock.json.

Once the v5 of SDK is published I will update all samples to point to NPM.

@@ -4,7 +4,7 @@ import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {HttpModule} from '@angular/http';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace HttpModule with HttpClientModule

import {HttpClientModule} from '@angular/common/http';

@eitanp461 eitanp461 merged commit ddab7d1 into master Nov 22, 2017
@eitanp461 eitanp461 deleted the angular5 branch November 22, 2017 12:56
@selected-pixel-jameson
Copy link

I'm not positive but I think this commit might have broken the bower install for

"cloudinary_ng": "1.x",

My build stopped working and the last time I was able to successfully build was on 11/21.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants