-
Notifications
You must be signed in to change notification settings - Fork 12k
chore: update blueprints to 2.0.0-alpha-47 #85
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import {Component} from 'angular2/angular2'; | ||
import {Component} from 'angular2/core'; | ||
|
||
|
||
@Component({ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,11 +15,11 @@ import {<%= classifiedModuleName %>} from './<%= dasherizedModuleName %>'; | |
|
||
describe('<%= classifiedModuleName %> Pipe', () => { | ||
|
||
beforeEachProviders(() => []); | ||
beforeEachProviders(() => [<%= classifiedModuleName%>]); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why this change? this looks wrong There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if we don't have the providers injected there it throws:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please confirm this. other changes were made. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh. Never mind. I was wrong about this one |
||
|
||
|
||
it('should ...', inject([<%= classifiedModuleName %>], (pipe:<%= classifiedModuleName %>) => { | ||
expect(pipe.transform(true)).toBe(false); | ||
it('should transform the input', inject([<%= classifiedModuleName %>], (pipe:<%= classifiedModuleName %>) => { | ||
expect(pipe.transform(true)).toBe(null); | ||
})); | ||
|
||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ import {<%= classifiedModuleName %>} from './<%= dasherizedModuleName %>'; | |
|
||
describe('<%= classifiedModuleName %> Service', () => { | ||
|
||
beforeEachProviders(() => []); | ||
beforeEachProviders(() => [<%= classifiedModuleName %>]); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, here it makes sense |
||
|
||
|
||
it('should ...', inject([<%= classifiedModuleName %>], (service:<%= classifiedModuleName %>) => { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import {Injectable} from 'angular2/angular2'; | ||
import {Injectable} from 'angular2/core'; | ||
|
||
|
||
@Injectable() | ||
export class <%= classifiedModuleName %> { | ||
|
||
constructor() {} | ||
|
||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
above this line add:
this will resolve all the
tsc
issues - this is a bug in angular a47. I'll file an issue.let's add this line and we'll remove it once the bug is fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also add a link to angular/angular#5596 for more context as to why this line is needed