Last month, I was working on a project that involved file/image uploading and I thought I would share what I have learned to those of you who are looking to do the same in JavaScript.
I have been doing a lot of forms submit that include inputs type text and file for images a lot lately so I thought it would be a great idea to share how it is done, or at least how I did. This is a solution using…
Have you ever gotten that error while working on your code? Seems weird right? how does that even happen? You have just installed some modules using npm, write some code, pushed it on for a code review from your peers. Then everyone checks your code and gives it the…
Today, I will be talking about my experience and what I have learned by implement loading substates in Ember.js. It is a very convenient way of showing loading states for conventional uses, such as loading spinners or loading progress bars.
How do you update property changes in Ember? I have come across a couple of different ways to do it. I also have another post that closely relates to this topic called Ember.js — KVO-compliant array of objects.
I’m sure many of us who uses Ember (along with many other frameworks) have ran into this problem before and was so confused as you look through Google to find a concrete answer. Well look no more! I’ve got the…
In this post, I will be talking about everyone’s favorite topic in programming, you have all heard of it, testing!
Testing in Ember can be a bit daunting when first starting out on the framework. But after taking the time to learn and understand Ember…
What if you needed one place where you can access all of your constants in Ember? We want to write clear and concise code, and if we have a large project where each file contains 1000+ lines of code, we would want to separate the constants in another file right? It is good practice…
If you guys are like me, a complete noob at Ember (I’ve just picked it up and have been working on it for a month now for a new project at work), you might have ran into an issue trying to import node modules.
Today, I will be showing you guys how to make an XHR AJAX request to do RESTful API calls like ‘GET’ and ‘POST’ to your end points.
I recently had to do this while creating an admin site at work and I would like to share it with all of you how to do it!
Okay, so a couple of weeks ago, I made a post about JavaScript onChange file input and I since I have been working on Ember.js, I thought I would show you guys how to do it in Ember.js for those who are curious.
Here’s one of the ways that you should remove objects from Ember’s mutable arrays.
let names = [ { id: 0, name: 'John' }, { id: 1, name: 'Jim' }]
Ember recursive component is very interesting. I had to create a side tree view component for a project I was working on and I created it using a recursive component in Ember.
Relative to using pure HTML and JavaScript to set or add css classes to elements, Ember.js has a more elegant way of setting classes to elements or components.
For example, we have something like this:
// list1.css.hideList {…
When I first learned Java, I was confused about these two API because they looked and functioned as if they were the same! But there is an important distinction between them and if you want to be a Java developer, you should know what it is.
Did you know that data returned from the Ember Data store is of type Ember’s DS.RecordArray? How would we parse it? What if we wanted to manipulate it? No worries, I will show you how.
Hey guys! I was working with the ember-boostrap accordion component and I thought I would share to you all how I created an open/close all functionality for the accordions in my web application.
// jsimport Ember from 'ember';
This is a simple example of when you should use the .setProperties on an Ember object such as the controller.
.setProperties
// search.jsexport default Ember.Route.extend({ setupController(controller, model) { this._super(controller, model) let foods =…
// search.jsexport default Ember.Route.extend({ setupController(controller, model) { this._super(controller, model) let foods =
This is a very powerful tool in Ember.Ember.js — Components: Defining a ComponentOften times, your components will just encapsulate certain snippets of Handlebars templates that you find yourself using…guides.emberjs.com
Under the hood, Ember converts all arrays into an Ember.Array object. What this means is there are some things we have to do different if we want to manipulate it. In some cases, we can’t just use the the methods on a regular JavaScript array object, and in…
Have you guys tried to do something like this:
<button onclick=(action “onClickAction”)></button>
and you get an error like this?
Assertion Error: an action named <action_name> was not found…
What are the differences between the two? Now that Java 8 enables default methods in interfaces, do you even need abstract classes at all?
Lets go over the attributes of an Abstract Class:
Did you know that you don’t always have to load the default template that comes with your route/component in Ember? I did not until I explored with loading substate templates, which you can check out here from my other post.
I got this error recently, working with Ember Data:
Assertion Failed: normalizeResponse must return a valid JSON API document: * One or more of the following keys must be present: “data”, “errors”, “meta”.
I’ve been dabbling in Java 8 new features and I must admit, they made updates that are definitely useful and should be kept in your tool belt.
First off, let’s talk bout the new changes to Interface.
Here a list of access modifiers in Java and what they entails if you decide to use them.
Restrictive spectrum
Least ← — — — →Most
Private, Default, Protected, Public