Skip to content

Instantly share code, notes, and snippets.

@gpincheiraa
Created September 23, 2017 05:36
Show Gist options
  • Save gpincheiraa/6a44e932506fd21e05800af80b0ff746 to your computer and use it in GitHub Desktop.
Save gpincheiraa/6a44e932506fd21e05800af80b0ff746 to your computer and use it in GitHub Desktop.
index.js_2_2nd_article
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