resdy to merge
authorJulie Hill Roa <julie.hill.roa@gmail.com>
Thu, 12 Nov 2015 08:25:05 +0000 (09:25 +0100)
committerJulie Hill Roa <julie.hill.roa@gmail.com>
Thu, 12 Nov 2015 08:25:05 +0000 (09:25 +0100)
src/components/app/app.ts
src/components/map/map.ts [new file with mode: 0644]
src/index.html

index 224d144..39a3db0 100644 (file)
@@ -1,5 +1,5 @@
-import {bootstrap, Component, CORE_DIRECTIVES} from '../../../node_modules/angular2/angular2.d.ts';
-
+import {bootstrap, Component, CORE_DIRECTIVES} from 'angular2/angular2';
+import {map} from '../map/map';
 @Component({
     selector: 'hello-world',
     directives: [CORE_DIRECTIVES],
diff --git a/src/components/map/map.ts b/src/components/map/map.ts
new file mode 100644 (file)
index 0000000..c79ac10
--- /dev/null
@@ -0,0 +1,23 @@
+import {Component, CORE_DIRECTIVES} from '../../../node_modules/angular2/angular2.d.ts';
+
+@Component({
+    selector: 'map',
+    directives: [CORE_DIRECTIVES],
+    template: ` <div id="map"></div>`
+    //templateUrl: './map.html'
+
+
+})
+
+
+class Map {
+
+
+    initMap() {
+         let map = new google.maps.Map(document.getElementById('map'), {
+           center: {lat: -34.397, lng: 150.644},
+         zoom: 8
+        });
+
+    }
+}
index d44cd76..f51379f 100644 (file)
@@ -20,9 +20,6 @@
         });
         System.import('components/app/app');
     </script>
-    <!--
-
-    -->
 </head>
 <body>
     <hello-world>loading...</hello-world>