text: import {inject} from 'aurelia-framework';
  import {HttpClient} from 'aurelia-http-client';
  
  @inject(HttpClient)
  export class Flickr{
    heading = 'Flickr';
    images = [];
    url = 'http://api.flickr.com/services/feeds/photos_public.gne?tags=rainier&tagmode=any&format=json';
    //url = 'http://localhost:9001/data';
  
    constructor(http){
      this.http = http;
    }
  
    activate(){
      return this.http.jsonp(this.url).then(response => {
        this.images = response.content.items;
        //console.log(response.content);
        //alert(response.content);
      });
    }
  
    canDeactivate(){
      return confirm('Are you sure you want to leave?');
    }
  }