Programming

Gmail Style Notifications in Ember

Here is a simple way to add gmail-style notifications in an ember app.  First start by adding an outlet in the application.hbs template file.

Next we create a notification mixin that we can add to any route that requires to use it.  You can just use ember cli to generate it with

Add(…)

Ember Views and Associated Controller

I have a Navigation Bar view that hand menus that required handling some actions.  Some of these actions require accessing other controllers which means I have to use ‘needs’ in my own controller. Using ember cli, I was able to generate the template with

the view with

and the controller with

 (…)

Use SASS with Lineman without Ruby

If you are using linemanjs for your frontend (ember/angular) development and want to use SASS, you will find that there is a dependency on Ruby and Compass to get SASS working. If you don’t have the dependencies, you will see an error like this: Running “sass:compile” (sass) task Warning: You need to have Ruby and(…)

Deploying Ember.js with ASPNET WEB API

I am using lineman.js to create my ember app which talks to an asp.net web api backend.  Ember expects all css files at /css, all js files at /js, all font at /fonts and all images at /images. My build script moves these folders in the /content folder.  Luckily, there is an easy way to(…)

EmberJs and ASPNET MVC WebAPI Validation

EmberJs and ASPNET MVC WebAPI Validation

I use ember.js for my front end which talks to an REST ASP.NET Web API backend.  I wanted to leverage the awesome validation built into ASP.NET.  So when I post the following JSON to my /api/users

I should get errors because the email and password are required fields and I do.  The returned JSON(…)