Coder Social home page Coder Social logo

zguillez / generator-base-angularjs Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 2.0 3.46 MB

AngularJS basic skeleton for webapp development. With RequireJS, Bootstrap, Sass. Also with JSHint and Grunt

Home Page: http://zguillez.io/yeoman/angularjs/

JavaScript 88.39% HTML 9.48% CSS 2.13%

generator-base-angularjs's People

Contributors

dependabot[bot] avatar gitter-badger avatar greenkeeper[bot] avatar zguillez avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

generator-base-angularjs's Issues

New Controller Not Recognized

I have a new basic controller defined in controllers folder, new.js

define([], function() {
  'use strict';

  function newController($scope, $location, $http, $route, $routeParams) {
    console.log($routeParams.page);
  }

  newController.$inject = ['$scope', '$http', '$location', '$route', '$routeParams'];
  return newController;
});

which I've thus included in controllers.js

define(['controllers/new'], function(newController) {
  'use strict';
  window.app.controller('newController', newController);
});

and have a route to it

when('/:page', {
        templateUrl: 'templates/new.html',
        controller: 'newController'
      }).

However, when I hit this route, here's what my console spits out:

angular.min.js:107 Error: [ng:areq] http://errors.angularjs.org/1.4.9/ng/areq?p0=newController&p1=not%20aNaNunction%2C%20got%20undefined
    at Error (native)
    at http://localhost:9000/lib/angular.min.js:6:416
    at rb (http://localhost:9000/lib/angular.min.js:22:130)
    at Qa (http://localhost:9000/lib/angular.min.js:22:217)
    at http://localhost:9000/lib/angular.min.js:80:210
    at A.link (http://localhost:9000/lib/angular-route.min.js:7:268)
    at ca (http://localhost:9000/lib/angular.min.js:73:279)
    at I (http://localhost:9000/lib/angular.min.js:62:174)
    at g (http://localhost:9000/lib/angular.min.js:55:97)
    at http://localhost:9000/lib/angular.min.js:54:239

Which links me to the angular error page saying:

Error: ng:areq
Bad Argument
Argument 'newController' is not a

Which obviously isn't that informative. What am I doing wrong?

An in-range update of grunt is breaking the build 🚨

Version 1.0.3 of grunt was just published.

Branch Build failing 🚨
Dependency grunt
Current Version 1.0.2
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

grunt is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 10 commits.

  • 9ba3a99 1.0.3
  • eee4c33 Changelog v1.0.3
  • 46da7f2 Merge pull request #1636 from gruntjs/upt
  • 00f4d8a Drop support for Node 0.10 and 0.12
  • e852727 util update
  • 56d702e Update deps
  • 0105524 Fix race condition with file.mkdir and make it operate more similarily to mkdir -p (#1627) r=@vladikoff
  • 303d445 https links (#1629)
  • d969132 Merge pull request #1624 from gruntjs/rm-bump-deps
  • 289ff91 Remove old bump task and deps

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of gulp-line-ending-corrector is breaking the build 🚨

Version 1.0.3 of gulp-line-ending-corrector was just published.

Branch Build failing 🚨
Dependency gulp-line-ending-corrector
Current Version 1.0.2
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

gulp-line-ending-corrector is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Commits

The new version differs by 4 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of yeoman-test is breaking the build 🚨

Version 1.7.2 of yeoman-test was just published.

Branch Build failing 🚨
Dependency yeoman-test
Current Version 1.7.1
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

yeoman-test is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 2 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of grunt-contrib-watch is breaking the build 🚨

Version 1.1.0 of grunt-contrib-watch was just published.

Branch Build failing 🚨
Dependency grunt-contrib-watch
Current Version 1.0.1
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

grunt-contrib-watch is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 4 commits.

  • 3b7ddf4 v1.1.0
  • 72b1214 Updating dependencies, async, lodash and tiny-lr
  • 5adb27c Merge pull request #543 from digitalbazaar/master
  • f07311b Update tiny-lr dependency to 1.x

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

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.