angular-fullstack

Angular app running on azure app service not receive .AspNetCore.Antiforgery cookie sent by .net core web api app on azure

荒凉一梦 提交于 2021-02-11 08:00:36
问题 I have angular 5 app and .net core 2.0 web api app hosted on azure as app services. Apps have two urls as below. angularclient.azurewebsites.net serviceapi.azurewebsites.net The issue I am facing is angular app not receiving .AspNetCore.Antiforgery cookie that is sent by serviceapi. Http post request generated by angular app has "withCredentials: true" header. I have defined cors policy in service API as below. app.UseCors(builder => builder.WithOrigins("angularclient.azurewebsites.net")

Problems Deploying Yeoman app to Heroku

瘦欲@ 提交于 2020-01-06 04:21:28
问题 I've been trying to deploy my AngularFullstack (node) app to Heroku. I created the app in the terminal with: yo angular-fullstack . Whenever I try to deploy to Heroku I get the following when I go to my deployed app: Application Error An error occurred in the application and your page could not be served. Please try again in a few moments. If you are the application owner, check your logs for details. The logs are: 2015-07-24T06:57:35.184227+00:00 heroku[web.1]: State changed from up to

Problems Deploying Yeoman app to Heroku

落花浮王杯 提交于 2020-01-06 04:21:06
问题 I've been trying to deploy my AngularFullstack (node) app to Heroku. I created the app in the terminal with: yo angular-fullstack . Whenever I try to deploy to Heroku I get the following when I go to my deployed app: Application Error An error occurred in the application and your page could not be served. Please try again in a few moments. If you are the application owner, check your logs for details. The logs are: 2015-07-24T06:57:35.184227+00:00 heroku[web.1]: State changed from up to

Missing modules after generation using Yeoman's generator-angular-fullstack

穿精又带淫゛_ 提交于 2020-01-06 04:17:12
问题 There's a question with almost the same title as mine with no answers here, and I can't comment to see if @Gabriel-Kunkel got anywhere with it. I was going to post an answer, but I saw StackOverflow said to avoid doing that, so asking the same question was the best I could think to do... I'm trying to get a fresh install from the generator-angular-fullstack with these options Grunt Jasmine TypeScript HTML LESS ui-router Bootstrap UI-Bootstrap Mongo Authentication Boilerplate (Yes) No other

sequelize, Statement(where) in statement(where)

二次信任 提交于 2020-01-04 03:12:05
问题 I'm trying for 2 hours to resolve a little problem which is not one. I'm on an generated yeoman Angular-fullstack App. I want to write this code with sequelize: SELECT * FROM demand WHERE city_id NOT IN ( SELECT city_id FROM demand WHERE user_id=req.params.user_id) I have yet the following code but that doesn't work. I get only [] export function getCity(req, res) { return Demand.findAll({ where: { city_id:{ $notIn: Demand.findAll({ attributes: ['city_id'], where: { user_id: req.params.user

Angular-Fullstack Requiring external module babel-register

喜夏-厌秋 提交于 2019-12-14 02:35:44
问题 I am getting this error when use gulp serve from a angular-fullstack project generator. Please, how can I solve this issue? The dependencie was set in package.json properly. [18:03:54] Requiring external module babel-register /home/gcfabri/Workspace/sportfitness/gulpfile.babel.js:4 import _ from 'lodash'; ^^^^^^ SyntaxError: Unexpected token import at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:387:25) at loader (/home/gcfabri/node_modules/babel-register/lib/node.js

Missing modules after fresh generation with Yeoman's angular-fullstack

旧城冷巷雨未停 提交于 2019-12-13 05:39:52
问题 So, I generated a fresh angular-fullstack with TypeScript, MongoDB, Bootstrap, Bootstrap UI, Authentication Boilerplate, Twitter and Google OAuth, Grunt, Jasmine, HTML, CSS, and UI-Router for the settings. After I ran npm install and bower install. There were some unmet dependencies, so I installed TypeScript, locally Mocha, locally Tslint, locally Also, I was getting an error during build that was resolved by installing grunt-babel@5.0.0, locally. Now, when I run "grunt serve" It all works

Resolve using UI Router and pass to a component's controller

别等时光非礼了梦想. 提交于 2019-12-10 13:23:21
问题 How do I resolve a variable with UI Router when I am using a component. This is the route: $stateProvider .state('route', { url: '/route', template: '<my-component user="user"></my-component>', resolve: { user: (Auth) => { return Auth.getCurrentUser().$promise; } } }) This is the component: (function () { class BookingListComponent { constructor(user) { //I want to use the user here but getting the unknown provider error } } angular.module('app') .component('myComponent', { templateUrl: 'my