Skip to content

Instantly share code, notes, and snippets.

Rockin' the dad jeans

Tom Wayson tomwayson

Rockin' the dad jeans
View GitHub Profile
tomwayson /
Last active Sep 18, 2022 — forked from jwasilgeo/angular2-esri-loader
How to use angular2-esri-loader in an angular-cli application

Adding angular2-esri-loader to the app and creating a map

NOTE: These instructions apply to trying to use the ArcGIS API for JavaScript in an Angular 2 application created w/ angular-cli. If you're working with more recent versions of Angular, you should use instead.

  1. Create a new Angular app by using angular-cli to generate a new project

  2. Install angular2-esri-loader

npm install angular2-esri-loader esri-loader --save
import Ember from 'ember';
export default Ember.Component.extend({
checked: Ember.computed('', 'itemsToAdd.[]', function () {
const itemsToAdd = this.get('itemsToAdd');
return !!itemsToAdd.findBy('id', this.get(''));
View hack.hbs
{{page-layout }}
{{#each layoutRow as |row|}}
{{page-layout-editor }}
{{#each layoutRow as |row|}}
tomwayson / 0_reuse_code.js
Created Oct 28, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console