[AngularJS] Angular 2(5), Nodejs, and nwjs

2018-01-28 Thread Ed Thompson
I am trying to write an Angular2 app in nwjs, which among other things exposes the Nodejs process variable. What I am finding is that SOMETHING is overwriting the process variable with an empty process object, and I cannot find what it is. console.log(JSON.stringify(process.version));

[AngularJS] Re: $http.post what format for data (body) when binary?

2016-12-06 Thread Ed Thompson
DOH, I just had to add , transformRequest: [] so that angularjs would not crap on the data. $http.post("https://content.dropboxapi.com/2/files/upload;, data, { headers: { 'Content-Type': 'application/octet-stream',

[AngularJS] $http.post what format for data (body) when binary?

2016-12-06 Thread Ed Thompson
Angular 1.x (latest) I want to send a binary file (image for example) in an angularjs $http.post. I have the data in a nodejs Buffer object, which is an implementation Uint8Array. I tried: $http.post("https://content.dropboxapi.com/2/files/upload;, data,

[AngularJS] Angularjs Design Question - html files versus ng-template

2016-10-03 Thread Ed Thompson
I have about 30 html files in my Angularjs 1.x app. For my production build, I am trying to decide if I should keep them separate files, or if I should combine them into a single file at build time as a single file with multiple

[AngularJS] window.execCommand acting quirky

2014-01-03 Thread Ed Thompson
OK, I have a jsfiddle that demonstrates this issue: http://jsfiddle.net/ed4becky/NJnyU/36/ I have a contenteditable field. when it has focus a formatter bar pops up. Scenerio 1: Select text. Text is highlighted Click the italic button. text is converted to italic and still highlighted

[AngularJS] Re: window.execCommand acting quirky

2014-01-03 Thread Ed Thompson
so really an issue is when the DOM get rewritten to include the b tags, the change is NOT being propogated, which means its out of sync for the NEXT call. The issue I'm trying to address with the blur code is the fact that the change (adding the b tags) is NOT getting propogated to the

[AngularJS] Adding new item to list and managing focus

2014-01-02 Thread Ed Thompson
I have a simple(?) Angularjs repeat list that when I add a new item to the list, displays the new item as I expect. tr class='claimrow' data-ng-repeat='c in dp.claims' td div contentedittable=truesome data/div /td ... /tr So adding an item to dp.claims adds a

Re: [AngularJS] Re: Adding new item to list and managing focus

2014-01-02 Thread Ed Thompson
I know the row, so I could use DOM functions, but I don't know WHEN since I don't control the rendering. I'll try to get an example On Thu, Jan 2, 2014 at 12:06 PM, Sander Elias sanderel...@gmail.com wrote: Hi Ed, As you know which row has to be selected, you can create an small directive

Re: [AngularJS] Re: Adding new item to list and managing focus

2014-01-02 Thread Ed Thompson
here is a jsfiddle: http://jsfiddle.net/ed4becky/et7jv/ -- 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 to this