Skip to main content

Posts

Featured

How I solved programmatically updating window.location from a child element in a subroute using events and app-route

untitled <app-route> I was having trouble figureing out how to programaticlly change window.location from a nested child element. In my case I wanted to send up a uri from dropdown. The `select-item` property was bound to `location`, and `location` had an observer `_updateLocation`. < x -dropdown selected-item = {{location}} ></ x -dropdown > location : { type : Object , observer : ' _updateLocation ' } I could have set `notify:true` on `location`, but then I would have to pass it up the chain. Instead I decided to use an event. _updateLocation : function ( item ){ this . fire ( ' update-location-request ' , { uri : location . link }) } On the element that contians the `app-location` I set up a property called `location` ,it also has an `observer:'_updateLocation'` (these don't have to be named the same

Latest Posts

To open a bash prompt in a running docker contianer

So you want to add all your untracked files to your .gitignore

Remember: Run your animations with requestAnimationFrame

Has the war on terror destroyed the basic underpinnings of our democracy? Have the "terrorists" won?

Rpg with canvas and js

Chromium updater, bash your Mac to the latest nightly.

It looks to be official, we are whats left of the Neanderthals

The meaning of life in 4 minutes from - Zelidar's Channel - YouTube

S&P Rating, tea parties and the mad hatter.

Remove trailing spaces using vim