Created
September 23, 2017 05:36
-
-
Save gpincheiraa/6a44e932506fd21e05800af80b0ff746 to your computer and use it in GitHub Desktop.
index.js_2_2nd_article
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import angular from "angular" | |
| import { routes } from "./routes" | |
| import { TodoListComponent } from "./components/todoList.component" | |
| import { TodoService } from "./services/todo.service" | |
| angular | |
| .module("App", [ | |
| "ui.router" | |
| ]) | |
| .config(routes) | |
| .constant("BASE_URL", "http://localhost:5000/api") | |
| .component("todoList", TodoListComponent) | |
| .service("TodoService", TodoService) | |
| angular.bootstrap(document, ["App"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment