Giter VIP home page Giter VIP logo

beyondearthappangular's People

Contributors

camjm avatar

Watchers

 avatar  avatar

beyondearthappangular's Issues

Views

Refactor the html views to 'src' as jade. Use appropriate file structure (not flat).

TypeScript

Create a new TypeScriptBranch that uses TypeScript instead of CoffeeScript to generate the JavaScript. Compile with Babel, using a grunt plugin.

Angular App

Currently our angular app is a global variable, that is referenced in lots of script files (controllers, etc). This means that we can't wrap or js generated from coffeescript in a wrapper function (see the grunt option). Instead of this, use a string passed to angular.module to access the app and wrap the js.

Bower

which grunt plug in should I use?

Angular ui-router module

change to using the ui-router module instead of the ngRoute module. It uses $stateParams instead of $routeParams. Then we can use $stateParams in the route defininition resolvers instead of $route ($routeParams isn't defined at that time, can only be used inside controller).

Controller Naming Convention

Tidy up the controller naming convention. Refactor file structure so it is not flat. For example put all the unit controllers in a 'unit' folder. Controllers should follow the following pattern:

  • UnitListController
  • UnitViewController
  • UnitAddController
  • UnitEditController

This is to make the controller match the routing url pattern.

Grunt http server

find and use a grunt plugin for a http server (instead of just using 'http-server' from the command line).

Resources

Refactor all services as angular resources. Do not use wrapper, just return the resource object.

Route change events

Investigate configurations for $routeChangeSuccess and $routeChangeError events, so we can handle failures for calls to the back-end globally. Currently we use the content-info directive in each view to handle the $promises, but instead we can handle them in the route configuration.

Because it's the routing modules responsibility to handle, not the controller's.

HATEOAS

Incorporate angular-hateoas so the app can use the API's links. (Remember to do this in a new branch).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.