I am creating a to do list app with Ionic 4. When the user clicks add a task an alert opens. However when a task is put it the input and the add task button is clicked, nothing happens. I feel like there is an issue with my arrow function but I am not familiar enough with them to spot the problem. I have attached a photo of the bit of code I think is the issue and the link to my github. I would really appreciate feedback and a solution!
Ionic 4 Arrow Functions
364 Views Asked by Blen6035 At
1
There are 1 best solutions below
Related Questions in IONIC-FRAMEWORK
- CFBundleDocumentType is not working in myproject-Info.plist file
- ionic build android failure - Execution failed for task processDebugResources
- Android Status Bar Icon Size - Using Cordova / Phonegap Push Plugin
- how to show alert when user scroll to top of div in angular js?
- ionic serve uncaught exception
- Parse.com - setting up push notifications for single users
- Understanding the function of this particular 9 patch image
- CORS in ionic app and django
- How to use embedded Ruby HTML files with Ionic and Cordova
- Ionic cordova build
- Input ng-model not updating in Main view
- ng-click event not getting cleared in Ionic app
- How to show image caption in ionicframework?
- whitelisting a domain in ionic app
- Adding visionmedia/debug to an Ionic/AngularJS application
Related Questions in ALERT
- Can't see how to disable an AlertDialog Box
- Unable to send email through PHP with alert message as notification linked with jQuery
- how to realize an alert that disappears after some seconds
- Detect Country then show message?
- Javascript: display an alert when a form is checked?
- Alerting framework for incoming traffic
- Excel VBA - Value & MsgBox
- Make an alert only appear when app is opened
- Using onbeforeunload to create a custom confirmation warning?
- Javascript return in function in object won't show alert box
- Javascript alert box blocks sound object
- How can I make this script to pop up instead of alert
- Alert Dialogue in Android-beginners
- Running function inside document.write which document.write inside window.open
- Value change Alert VBA
Related Questions in ARROW-FUNCTIONS
- Official information on `arguments` in ES6 Arrow functions?
- This context in arrow function ReactJS
- Why does my arrow function have a prototype property?
- When using React Is it preferable to use fat arrow functions or bind functions in constructor?
- Why arrow function is behaving weirdly?
- es2015 arrow functions, fetch and this
- D3.js v4: Access current DOM element in ES6 arrow function event listener
- Affect this in a variable instead of using the fat arrow in coffeescript
- passing an array of arrow functions
- SyntaxError: invalid arrow-function arguments (parentheses around the arrow-function may help)
- Can I use TypeScript overloads when using fat arrow syntax for class methods?
- Visual Studio intellisense from Typescript jsdoc is not working with fat arrow functions
- Use arrow function as method passed to requestAnimationFrame
- Trying to rewrite this using arrow syntax
- Array.prototype.filter() argument with arrow function callback? (no this binding)
Related Questions in ION-LIST
- Display an ion-item in an ion-list dynamically
- Ionic formControlName and ngIf don't work together
- Multiline item showing zic-zac while using text-wrap in ion-grid ionic 2
- Can I make an ngFor repeath specifict times of an array? Ionic
- How to fetch data from cloud firestore to an ion-list angular 9 /ionic 5
- How to make a static ion-list scrollable in ionic?
- How to display different type of elements on different segment button clicks in ionic?
- ionic - clicking an item should update the list
- ION-LIST fill left an right side with different contents
- ion-list is not scrolling and items are not clickable
- Ionic 4 Arrow Functions
- Ionic horizontal reordering list
- Ionic - HTML list with parents and child elements
- Ionic 5 ion-content ion-list scroll disabled after scroll down
- Ionic 5 ion refresh problem when we also used ion gesture
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?

I see two issues with the code here:
this.tasks = this.taskList.valueChanges(); This returns an observable so you must use an async pipe to retrieve its value within the template such as:
*ngFor="let task of tasks | async"
The input was set for a different name, the input name here is "title" and that is how the data returned within the arrow function should be referenced as well