packtpublishing / angular-projects Goto Github PK
View Code? Open in Web Editor NEWAngular Projects, Published by Packt
License: MIT License
Angular Projects, Published by Packt
License: MIT License
The mockable.io endpoints in the source code and referenced in chapter 3 are not available (report a 404). Can I suggest providing a template for the reader to host these with their own mockable account?
Hi, I have a problem with the code in flash.component.ts in chapter 2 (ng-flashcard project):
markCorrect() {
this.onRememberedChange.emit({
id: this.flash.id.toString(),
flag: 'correct'
})
}
I receive this error : error TS2345: Argument of type '{ id: string; flag: string; }' is not assignable to parameter of type 'string'.
I think the method emit accepts obly strings not object. Please help me thanks.
`
ngOnInit() {
if (this.product) {
this.productForm.setValue({
basic: {
features: this.product.features || [''],
},
expiration: {
}
});
this.deviceType = this.product.type;
}
}`
When you run the above code you will not see a problem in the console. Yet I caught it when I was about to edit the newly added item to the products list. Upon the pop up of the modal the device type is set to the default while it should be set to the value the user has chosen.
As you can see, the features type should be an array or an empty array.
You can solve it by casting / enclosing the this.product.features
in[to] an array [ this.product.features ]
.
There are various assignments required in the course, and the starting project from them is not available here.
I wound up here looking for the 2nd edition....
p29 "../node_modules/bulma/css/bulma.min.css"
It should begin with current directory, not go up to parent.
p37: const flashId = this.flashs.indexOf(flash => flash.id === id);
I assume you mean 'findIndex' here?
And what's going on with the "Suggestions and Feedback" section in the README.md? It contains a dead link.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.