Re: [AngularJS] Re: Angular2 + Express.js running on the same port?

2016-06-02 Thread Kyle Thomas
atic to that folder. > > But go ahead and post more details when you're stuck, maybe somebody's met > the same errors as you have and has a solution. > > Zlatko > > On Monday, May 16, 2016 at 3:35:37 PM UTC+2, Kyle Thomas wrote: >> >> When I run everything throug

[AngularJS] NG1 + NG2 Hybrid app with modularized controller, services, etc?

2016-04-26 Thread Kyle Thomas
Currently in my NG1 app I have everything: In my NG2 hybrid app I'm loading the module using the system.config()

[AngularJS] upgradeAdapter.bootstrap an angular2 app?

2016-05-24 Thread Kyle Thomas
Is it possible to start out with an angular2 app and then bootstrap it to leverage the upgradeAdapter? I have a boot.ts /// import { bootstrap } from '@angular/platform-browser-dynamic'; import { ROUTER_PROVIDERS } from "@angular/router"; import { LocationStrategy, HashLocationStrategy } from

[AngularJS] Angular2 + Express.js running on the same port?

2016-05-12 Thread Kyle Thomas
Is it possible to start up node and have both run on the same port? -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post

Re: [AngularJS] Re: Angular2 + Express.js running on the same port?

2016-05-16 Thread Kyle Thomas
have that task; what do you get when you run "npm run"? > > And since it all looks connected, you may already have stuff prepared for > you - did you use some kind of boilerplate for the project? > On May 13, 2016 19:53, "Kyle Thomas" <kthomasatr...@gmail.com> wrote: >

[AngularJS] Re: Angular2 + Express.js running on the same port?

2016-05-13 Thread Kyle Thomas
When I do that I get: > cd server && node index.js info: Express server listening on 3001, in development mode GET /node_modules/systemjs/dist/system.js 304 11.320 ms - - GET /node_modules/es6-shim/es6-shim.js 304 8.689 ms - - GET /node_modules/angular2/bundles/angular2-polyfills.js 304 10.217

Re: [AngularJS] Re: Angular2 + Express.js running on the same port?

2016-05-13 Thread Kyle Thomas
ly opening the "index.html" > file directly in chrome, you cannot serve this angular app - not with Node, > but also not with nginx or apache or whatever. The build process needs to > do all of its stuff first. > > > On Fri, May 13, 2016 at 2:41 PM, Kyle Thomas <kthomas

[AngularJS] NG1 + NG2 upgradeAdapter - Seperate .js files for NG1 modules?

2016-05-10 Thread Kyle Thomas
I've migrated my application to run both NG1/NG2 but I was wondering if it is possible to separate the modules into their own .js files instead of lumping them all into (1) app.js for my system.config to load? Ideally I would like to have my main app.js and seperate auth.js, util.js,

Re: [AngularJS] Injecting header token with all REST API calls in Angular2

2017-01-20 Thread Kyle Thomas
Check out this tutorial/blog: http://jasonwatmore.com/post/2016/08/16/angular-2-jwt-authentication-example-tutorial On Fri, Jan 20, 2017 at 2:36 PM, Anil Mathew wrote: > Hi, > >I am using Angular2 and I am trying to find a way to send some header > to the server

[AngularJS] Re: Problem to upgrade angular 1.x to angular2

2017-01-20 Thread Kyle Thomas
I've stripped out a lot of code but here is an example that I got to work: main.ts import { UpgradeAdapter } from '@angular/upgrade'; import { AppModule } from './app.module'; let upgradeAdapter = new UpgradeAdapter(AppModule); angular.module('myApp') .directive( 'administration',

[AngularJS] Re: Problem to upgrade angular 1.x to angular2

2017-01-20 Thread Kyle Thomas
Also add this in your index.html -- You received this message because you are subscribed to the Google Groups "Angular" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to

[AngularJS] Angular2 + Material Design Layout issues

2017-01-20 Thread Kyle Thomas
When I start separating my layout components (header, banner, sidnav, etc) angular 2 wraps them in a new div Doesn't work: SidenavComponent => selector: 'app-sidenav' displays in the browser as: ... Works: Take the code out of the component template and just put it within the DIV of

[AngularJS] (SystemJS) AngularJS v1.x is not loaded! (Hybrid NG1 + NG2 w. RC5)

2016-10-07 Thread Kyle Thomas
I'm currently bootstrapping my hybrid angular 1 and 2 app and I get this error when I try to load it. localhost/:22 Error: (SystemJS) AngularJS v1.x is not loaded! Error: AngularJS v1.x is not loaded! at Object.noNg (http:

Re: [AngularJS] Attach Authorization Bearer JWT token for each API call

2016-08-26 Thread Kyle Thomas
ere no tokens in session storage). The caller > does not need to worry about any of this. > > > > > > > On Fri, Aug 26, 2016 at 12:26 PM Kyle Thomas <kthoma...@gmail.com > > wrote: > >> Is there a way to attach the Bearer token for each /api/ call

[AngularJS] Attach Authorization Bearer JWT token for each API call

2016-08-26 Thread Kyle Thomas
Is there a way to attach the Bearer token for each /api/ call out through something similar to an $httpProvider.interceptors in Angular 1? Right now I'm attaching it at every function call getUsers() { let jwt = Cookie.get('token'); let authHeader = new Headers(); if

[AngularJS] *ngFor requires me to click on the page to display the data

2016-10-18 Thread Kyle Thomas
Just to note, I am running a hybrid NG1 + NG2, but this is occurring in my NG2 component/service/html I have a component that has ngOnInit() { this.sbs.getSalesBomData(this.product.currentConfiguration. existingAssignments) .subscribe(data => this.salesBomData =

[AngularJS] Angular 2 merge multiple json objects?

2016-10-24 Thread Kyle Thomas
I have existingAssignments = {}; I want to merge these 2 sources into existingAssignments var seriesSrc = { "valueName": this.model.Series, "variableName": "Defaults.Series" }; var styleSrc = { "valueName": this.model.Style,

[AngularJS] Re: Cannot read property 'subscribe' of undefined in unit test

2017-09-22 Thread Kyle Thomas
I have a RouterLinkStubDirective, etc. provided by Google describe('LoginComponent', async() => { let mockAuthenticationService: MockAuthenticationService; let mockActivatedRouter: MockActivatedRoute; let mockRouter: MockRouter; let comp: LoginComponent; let fixture:

[AngularJS] Re: Angular 5 MockBackend replacement?

2017-11-15 Thread Kyle Thomas
Looks like I found my answer. They're recommending using the In Memory Web API. https://github.com/angular/in-memory-web-api -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving

[AngularJS] Angular 5

2017-11-15 Thread Kyle Thomas
I can't seem to find any documentation on what has replaced the MockBackend. the deprecation notes say use @angular/common/http instead, but I can't find any useful documentation on it. Any help would be appreciated. -- You received this message because you are subscribed to the Google

[AngularJS] Angular 5 MockBackend replacement?

2017-11-15 Thread Kyle Thomas
I can't seem to find any documentation on what has replaced the MockBackend. the deprecation notes say use @angular/common/http instead, but I can't find any useful documentation on it. Any help would be appreciated. -- You received this message because you are subscribed to the Google