zguillez / generator-base-angularjs Goto Github PK
View Code? Open in Web Editor NEWAngularJS basic skeleton for webapp development. With RequireJS, Bootstrap, Sass. Also with JSHint and Grunt
Home Page: http://zguillez.io/yeoman/angularjs/
AngularJS basic skeleton for webapp development. With RequireJS, Bootstrap, Sass. Also with JSHint and Grunt
Home Page: http://zguillez.io/yeoman/angularjs/
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?
Hi,
I tried using this generator, however it never asked for any options and terminated without any errors and without generating any code.
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.
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
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.
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
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
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.
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
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
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.
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.