yeoman-generator-angular

How to change/set the main view using Yeoman with Angular Fullstack

折月煮酒 提交于 2020-02-23 04:09:52
问题 I created a project using Yeoman (angular-fullstack). And now I would like to know how the change/set the main view to login.html. So normally when you start the application you first get the main view where you can chose to login or register. What I want is when the application start the page starts direct on the login.html 回答1: in your app.js file located at client\app\app.js , in the angular config add the following: $stateProvider .run(function ($state) { $state.go('login'); }); So it

How to change/set the main view using Yeoman with Angular Fullstack

南楼画角 提交于 2020-02-23 04:09:05
问题 I created a project using Yeoman (angular-fullstack). And now I would like to know how the change/set the main view to login.html. So normally when you start the application you first get the main view where you can chose to login or register. What I want is when the application start the page starts direct on the login.html 回答1: in your app.js file located at client\app\app.js , in the angular config add the following: $stateProvider .run(function ($state) { $state.go('login'); }); So it

Bower installs same package different in file structure

徘徊边缘 提交于 2019-12-25 04:23:04
问题 We have a TeamCity build server running on three different buildusers with the same configuration. We have set up a angular/grunt project using yeoman Update 6 Added a bower issue https://github.com/bower/bower/issues/1709 How come bower sometimes installs for example angular-animate with the structure: bower_components/angular-animate/bower-angular-animate-1.3.13/angular-animate.js and sometimes it puts the content of the bower-angular-animate-1.3.13 in the root so the structure looks like

Angular Authentication and Access control

半世苍凉 提交于 2019-12-22 11:37:52
问题 I have just shifted from Marionette.js to Angular. Right now I am creating one application where there is a login screen and home screen, I have two rest apis one for authentication and another one to check if user has active session or not(using tokens). If user has active session I want to redirect him to home screen. How can I implement this in Angular in best way? Thanks, MSK Note: I am using yeoman/generator-angular and ui-router 回答1: Authentication service 'use strict'; app.factory(

grunt serve from a fresh Yeoman install returns - Warning: Task “serve” not found

[亡魂溺海] 提交于 2019-12-21 11:34:11
问题 After running yo angular and then cd 'ing into the application's root folder (at same level as the app folder, gruntfile , package.json etc) I try grunt serve and I get the above error. Grunt won't start a server for me. I have searched all over but couldn't find say to run npm install and bower install within the application's root directory, which I have tried but still the same error. I've updated and checked bower/grunt/npm and they're all good. Any suggestions please? 回答1: I think I have

Yeoman and Bower not adding Bootstrap CSS (AngularJS generator)

前提是你 提交于 2019-12-18 10:33:58
问题 I am following along a codelab on the Yeoman webpage, and so far I've managed to follow along (with a few major hiccups getting my development environment going, but now it doesn't return any errors). So I made my project folder and ran yo , selected AngularJS and run the thing. Fairly soon into the process I got a prompt ? Overwrite package.json? I answered with y and got the following warnings: npm WARN package.json codelab@0.0.0 No license field. npm WARN peerDependencies The peer

Routing issue with AngularJS project using yeoman setup [duplicate]

白昼怎懂夜的黑 提交于 2019-12-17 16:41:40
问题 This question already has answers here : AngularJS: How to remove #!/ (bang prefix) from URL? (6 answers) Closed 2 years ago . I have setup a new Angular project using yeoman. Angular version is 1.6.0. Project setup was successful but I have been facing an issue with routing Task runner - Grunt When I run the project in local my local page will load with URL http://localhost:9000/#!/ I was expecting http://localhost:9000/#/ When clicked on About link browser is routed to http://localhost:9000

How to build IPA for distribution with TestFlight with XCode 5?

北战南征 提交于 2019-12-17 14:51:50
问题 In XCode 5(.1.1) how to I get an IPA for distribution via TestFlight? I set the code signing identity and provisioning profiles for the release to my distribution profile I build the archive (Select iOS Device from the menu, then Product>Archive), which succeeds. I select the archive in the organizer and click "Distribute..." I choose "Save for Enterprise or Ad Hoc Deployment I choose my distribution profile (same as in 1 above) I click export. XCode gives an error message Code signing

Deploy AngularJS app on tomcat

六眼飞鱼酱① 提交于 2019-12-12 10:36:59
问题 I created an AngularJS app with the yeoman angular generator. Now I want to host it using Apache tomcat. I already ran "grunt build" and have all my assets ready in the "dist"-folder. Is there a way to create a .war-file or can I just copy the files to a folder inside tomcat? 回答1: Just copy paste your all files in your project folder e.g. $TOMCAT_PATH/webapps/your-project-root/ Cheers!! 来源: https://stackoverflow.com/questions/33785665/deploy-angularjs-app-on-tomcat

Permission denied while installing Yo

孤街醉人 提交于 2019-12-12 07:51:18
问题 I'm trying to set up yo to use the angular generator for a project. I am following the steps detailled here: http://yeoman.io/learning/index.html I already have Node.js and NPM installed. But when I use the command: sudo npm install -g yo bower grunt-cli It fails and I get this error: > spawn-sync@1.0.11 postinstall /usr/lib/node_modules/yo/node_modules/cross-spawn/node_modules/spawn-sync > node postinstall fs.js:439 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);