Skip to content
Advertisement

Category: Questions

uploading image not working in codeigniter 3

i’m new learning codeigniter 3, i have problem that i can’t upload image in edit method. i’m really stuck, i already figure it out from the internet and documentation but there is no answer and my code still not working, when click submit button the method was success update to database but not with the image, here is my code

myComponent.map is not a function

I have this information right now that i’m saving and trying to pass to a component who then tries to create Tabs and TabPanel (Material-ui components) with said info. The declaration of that info goes as follow : I then proceed to pass said info to my component: On the other side i have an interface that contains the same

Angular – Scroll Event only page scroll

I need to check scroll event for a “show more” features. Im using: and this code: Unfortunally the scroll listen to every scroll in page, for example a scroll inside a DropDown etc… How can I listen ONLY the PAGE scroll ignoring everyelse? Answer One solution might be to use hostListener from Angular (https://angular.io/api/core/HostListener) in your page component or you

JavaScript: ‘this’ in superclass refers to subclass

I am calling a superclass method from a subclass. When called from a subclass, ‘this’ in the superclass method no longer refers to the superclass but to the subclass that called it. This creates problems with inheritance. Details as follows: In my project I use a class to construct objects from registered types. The types are registered from properties, or

How to filter data on Object in Angular

I get data from backend with this function and console.log(response) show JSON like below What I want are data that have “is_family_member”: false, for this I create this.personmembertrue = this.persons.filter(x => x.is_family_member === ‘false’) this part of code show empty. Any idea please how to show data with “is_family_member”: false Answer Change the condition to: See if that works.

Advertisement