angular-best-practices
angular-best-practices copied to clipboard
_Remove_ unused route (catalog/:id)
``` enroll(classId): Observable { if (!this.currentUser) return Observable.throw('User not signed in'); if (this.currentUser.classes.includes[classId]) return Observable.throw('Already enrolled'); this.currentUser.classes.push(classId); return Observable.empty().delay(1000); } ``` I noticed in several parts of you code you...
I noticed you used **any** as a type all over the project. Is not good practice to use type **any**