complete-javascript-course
complete-javascript-course copied to clipboard
294 Implementing Bookmarks - Part 2 at 13:40 - inheritance once again.
- I don't know why Jonas started changing arguments in render() method? We're working with two classes that should change a view state in a page -> the method that responsible for that is updateTemplatethat should call re-renderTemplate
- It would be easier to pass in A LIST with OBJECTS to updateTemplate(expectRecipesList)
In my case I override updateTemplate in each class since in one class we just need to go over attributes in another - text + some attributes I don't think that initiate two loops each time we need to change (just attributes) is a good idea - the behaviour is slightly different.
To my mind my code is easier to perceive.
@hazartilirot I can solve it for you, but I have some question
Well, it's kind of you. Thanks! However I dealt with issues on my own.