Re: [AngularJS] Re: using data from $resource

2013-12-23 Thread Thomas
I'll expand on this to say that it's rate to pass a service directly to the DOM. Services usually return their object data to a controller, which then interacts with the DOM. > On Dec 23, 2013, at 1:22 PM, Joseph Lehr wrote: > > $scope.PhoneList = > {"List":[{"Name":"chart","Values":[10,11,1

Re: [AngularJS] Consuming REST api and my confusion

2014-04-16 Thread Thomas Murphy
Hi Neil, ui-router doesn't have anything to do with REST (or HTTP really), so you won't find any info about it in those docs. $resource is the baked-into Angular way of doing REST-ful calls, and Restangular is a quite popular third-party library for implementing REST. On Wed, Apr 16, 2014 at

[AngularJS] Re: Trigger ngChange on Custom Directive

2014-06-06 Thread Thomas Chille
This works for me: .directive('mySelect', [ '$timeout' ($timeout) -> restrict: 'E' templateUrl: '/shared/select.html' replace: yes scope: ngModel: '=' ngChange: '&' nameProp: '=' options: '=' link: (scope, element, attrs) -> scope.$watch 'ngM

Re: [AngularJS] Async complete request

2014-06-10 Thread Thomas Murphy
Hi Madhu, Welcome to Angular! The direct analogue to what you're looking for is probably the all() method of $q. It's the last methods in the docs page here: https://docs.angularjs.org/api/ng/service/$q Best, Thomas On Tue, Jun 10, 2014 at 9:37 AM, madhu sudhan wrote: > I have

Re: [AngularJS] Async complete request

2014-06-10 Thread Thomas Murphy
;deffered.resolve(data); > }). > error(function(error){ >deffered.reject(); > }); > promises.push(deffered.promise); > }); > return $q.all(promises); >

[AngularJS] Re: Cheap, Easy Hosting Service for Node Angular Apps

2014-07-09 Thread John Thomas
If you haven't already considered, DigitalOcean mght be an option (someone feel free to correct me). I believe they may even have an image you can boot up already configured with Node on Ubuntu 14. Some additional installation/configuration may of course be required, but they tend to have a

[AngularJS] ng-show slow performance since angular version 1.2.17

2014-07-19 Thread Christian Thomas
Hi, first I'm sorry, that I can't create a live example including the issue at the moment. I'm developing a larger project with angular / scala's liftweb / JEE backend services ... For instance I have a button group, where for some buttons a ng-show is defined. When I will load the page, I

[AngularJS] Re: ng-show slow performance since angular version 1.2.17

2014-07-21 Thread Christian Thomas
Hey Martin, thanks for your response : ) We are already using ng-cloak to prevent, that something like {{ ng-stuff }} is shown for a few milliseconds. We have actually found out, that if we deactivate the ng-animate module, that everything works fine. That is no solution for us, while we want

[AngularJS] Re: ng-show slow performance since angular version 1.2.17

2014-07-21 Thread Christian Thomas
it is... Am Montag, 21. Juli 2014 22:25:15 UTC+2 schrieb Christian Thomas: > > Hey Martin, > > thanks for your response : ) > > We are already using ng-cloak to prevent, that something like {{ ng-stuff > }} is shown for a few milliseconds. We have actually found out, that

[AngularJS] Re: ng-show slow performance since angular version 1.2.17

2014-07-21 Thread Christian Thomas
I have created an issue @ github https://github.com/angular/angular.js/issues/8288 There you will find a live plunkr example, that shows the problem. Thanks -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop

Re: [AngularJS] Example of Controller and Service using promise to get remote data

2014-09-04 Thread Thomas Murphy
Let's ask a few questions first: 1. Why do you need both parts? (I think it's an excellent idea, but what do you think goes where?) 2. Why do you want to use a promise? Why not just first off a vanilla XHR? (Again, I think it's an excellent idea, but *why* are we doing this?) On Thu, Sep 4, 2014

Re: [AngularJS] Re: Example of Controller and Service using promise to get remote data

2014-09-05 Thread Thomas Murphy
1. What are you doing in the controller once you call serviceName.getData()? 2. What url are you calling in $http.get? If you're not calling anything, you'll get no data. Best, Thomas On Fri, Sep 5, 2014 at 10:49 AM, mark goldin wrote: > I also found this code: > fun

Re: [AngularJS] Re: Example of Controller and Service using promise to get remote data

2014-09-05 Thread Thomas Murphy
it with no problem. > > On Friday, September 5, 2014 9:58:27 AM UTC-5, Thomas Murphy wrote: >> >> 1. What are you doing in the controller once you call >> serviceName.getData()? >> 2. What url are you calling in $http.get? If you're not calling anything, >> y

Re: [AngularJS] Re: Example of Controller and Service using promise to get remote data

2014-09-05 Thread Thomas Murphy
; }); >>> >>> Controller: >>> var promise = service.getData(); >>> $scope.data = promise.then(function (data) { >>> alert('Success: ' + data); >>> }, function (reason) { >>> alert('Failed: '

Re: [AngularJS] Re: Example of Controller and Service using promise to get remote data

2014-09-05 Thread Thomas Murphy
;>> deferred.resolve(data); >>>>>> }); >>>>>> response.error(function (data) { >>>>>> alert('Error'); >>>>>> }); >>>>>>

Re: [AngularJS] Re: Example of Controller and Service using promise to get remote data

2014-09-05 Thread Thomas Murphy
d to conclusion too quickly. The file is in black now, but the >>>> error is still there. >>>> >>>> On Friday, September 5, 2014 2:06:34 PM UTC-5, mark goldin wrote: >>>>> >>>>> That was it! Added it to my web.config and no more errors. &g

Re: [AngularJS] Creating CRUD operations with Angular and MongoDB

2014-09-08 Thread Thomas Murphy
I don't see much correlation between the two. Your Mongo collection should have a schema corresponding to the form fields on your angular form, but the angular part ends at the time of the $http.post. This seems like more of a question of the interaction between the server of your choice and the m

Re: [AngularJS] Angularjs not working after pagination ajax

2014-09-12 Thread Thomas Murphy
It sounds like you need to do a mental stack-trace here. 1. When you click, is the function that make the AJAX call firing? 2. If it is, is data being returned? 3. If it is being returned, is the data being associated with the model? I'm not sure if you're REST-ful or not here. If you are, you ma

[AngularJS] Looking For Feedback On Open-Source JSON Standards For Popular Types Of Data

2014-11-06 Thread Thomas Bergen
Hi guys, Some friends and I have been attempting to create open-source JSON archetypes. JSON Archetypes are simply community-driven JSON standards for types of data that applications make over and over and over and over again (Products, Receipts, Events, Blog Posts, Real Estate Listings, etc.)

[AngularJS] Angular.JS directive architecture: wrap ui-bootstrap and ui-select directives in own directive

2014-11-20 Thread Thomas Waldecker
one field. * I am using the isolated scope variable tqModel which is set by the ngModel of the ui-select directive * I would like to use ng-required without creating a tq-required scope variable on tqLeadSelect directive *Questions:* * Am I doing it right? Are there better ways achieving m

[AngularJS] Re: Change location from modal dialog

2014-11-21 Thread Thomas Waldecker
t function I think you are trying to navigate to some state, and load a new view? Then I would probably use ui-router and $state.go(); Thomas -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop re

[AngularJS] Re: create a table with multiple file json

2014-11-21 Thread Thomas Waldecker
Hi, That has nothing to do with Angular.JS. You probably want to use some other library like underscore / lodash. The documentation for lodash is great: https://lodash.com/docs Thomas -- You received this message because you are subscribed to the Google Groups "AngularJS"

[AngularJS] Re: How to create a 'url_for' link helper in AngularjJS

2014-11-21 Thread Thomas Waldecker
What about ui-router? there is the ui-sref directive with just the state as parameter which generates the url to the according state. -- 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

[AngularJS] Re: $$hashKey shown on default filtering of ng-repeat

2014-11-21 Thread Thomas Murphy
Hi Leonard, Welcome. You'll want to use angular.toJson to remove the $$hashKey(and other $$ properties). You can find the documentation here: https://docs.angularjs.org/api/ng/function/angular.toJson. On Friday, November 21, 2014 3:57:24 PM UTC-5, Leonard Modoran wrote: > > Hi to all, > > this

[AngularJS] On the way to reusable, encapsulated select fields

2014-11-24 Thread Thomas Waldecker
lated scope but accesses scope.$parent to set the options. There are a few problems: * options is not isolated, can be overwritten from outside * if I make the scope not isolated I can't get the value from parameters Are there some other ways to achieve something like this? Thanks, thomas -

[AngularJS] Re: On the way to reusable, encapsulated select fields

2014-11-24 Thread Thomas Waldecker
Forgot to add the plnkr: http://plnkr.co/edit/n7gV9E?p=preview -- 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 thi

[AngularJS] Angular + Mongoose + Node: keine DB-Einträge

2014-12-28 Thread Thomas Handle
Hallo zusammen, dies ist mein erster Eintrag hier. Habe gerade begonnen, mich in die oben genannten Themen einzuarbeiten und brauche eure Unterstützung. Ich habe ein Model erstellt: var mongoose = require('mongoose'); var Schema = mongoose.Schema; var ArticleCategory = mongoose.model('ArticleC

Re: [AngularJS] http get request to youtube api not working

2014-01-09 Thread Thomas Murphy
Please read up on CORS as Pete just said. Accessing the page from the browser is not the same thing as a cross-domain AJAX request. On Thu, Jan 9, 2014 at 11:52 AM, Dominik Filipp wrote: > So what to do now? > > If I can access the page from within the browser I should be able to > access it so

Re: [AngularJS] Re: ng-include & cross-domain requests

2014-02-15 Thread Thomas Amsler
I eventually got it to work by setting the proper CORS headers on the server. -- Thomas Best, Thomas Amsler http://plus.google.com/+thomasamsler On Sat, Feb 15, 2014 at 3:29 PM, Darren Lawson wrote: > > Did you find a solution to this ? > > On Monday, 11 March 2013 23:08:44 UTC, T

Re: [AngularJS] AngularJS Developer Opportunity

2014-02-18 Thread Thomas Murphy
Out of curiosity, what is the job posting policy on this list? I'm personally against it, I think this list should be for dev discussion only, but is there an official policy? On Tue, Feb 18, 2014 at 10:55 AM, Rakesh Dhar wrote: > Hi All, > > > I am in urgent need of 2 AngularJS Developer/ Arch

[AngularJS] Single Controller for multiple html section which consumes json from API

2014-03-12 Thread thomas alexander
Hi, I was able to make work one controller for multiple html component, like this http://jsfiddle.net/tomalex0/z6fEf/4/ What i'm trying to do is to make Ajax request instead of localjson and make it work it as it is now. Regards Thomas -- You received this message because yo

[AngularJS] Re: Single Controller for multiple html section which consumes json from API

2014-03-13 Thread thomas alexander
Solved http://stackoverflow.com/questions/22368267/single-controller-for-multiple-html-section-and-data-from-ajax-request-angularjs On Wednesday, 12 March 2014 17:29:23 UTC-7, thomas alexander wrote: > > Hi, > > I was able to make work one controller for multiple html component,

Re: [AngularJS] Upload file: which one ?

2014-03-18 Thread Thomas Murphy
Hi Ziobudda, It sounds like you're sending a request to a REST-ful backend. Are you sure you need a framework for this? Perhaps $resource, or a custom method defined on it, can give you the solution you need. On Tue, Mar 18, 2014 at 5:08 PM, Ziobudda wrote: > Hi all, I need to upload a file to

Re: [AngularJS] ng-resource and $scope - getting cached?

2014-03-29 Thread Thomas Murphy
Hi Jake, There's some confusing language in your description of your issue. Could you make us a Plunkr? I bet we can get to the bottom of this then. On Fri, Mar 28, 2014 at 6:04 PM, Jake Rutter wrote: > Hey everyone, > > I think I have run into a snag and wanted to see if anyone can confirm my

[AngularJS] ng-Model not in isolated scope, why?

2014-03-30 Thread Thomas Subera
iew What am i doing wrong? Thanks in advance! Best Regards, Thomas ps: i have been searching for an hour and a half within the group but isolated scope is not really helpful as a search term^^ -- You received this message because you are subscribed to the Google Groups "AngularJS" g

[AngularJS] Re: ng-Model not in isolated scope, why?

2014-03-30 Thread Thomas Subera
a colleague found an error in my directive: fixed it and found a different approach to the problem.. it works with 1.0.8 but not 1.2.15. in 1.0.8 it has it's own isolated model, but not in the lates version... http://plnkr.co/edit/2w2IjIDvNYIPVsCz695G?p=preview thx, Thomas On Sunday, Mar

[AngularJS] Re: ng-Model not in isolated scope, why?

2014-04-02 Thread Thomas Subera
! Best Regards, Thomas On Tuesday, April 1, 2014 12:17:49 PM UTC+2, Sander Elias wrote: > > Hi Thomas, > > You need an new scope, not an isolated scope. > see: http://plnkr.co/edit/jkuKWZ3ItyM1OAlK3Bhm?p=preview > > Before version 1.2 there was a bug that leaked the

[AngularJS] angular 4 custom form validator

2017-11-28 Thread Jacob Thomas
We have a requirement to change attributes of form fields like "required", "hidden", "maxLength" based on selection of one or more fields on the form. For eg: Based on country selected from a dropdown, the city,state,address1, address2, address3 attributes should change. State may be mandatory

[AngularJS] Re: angular 4 custom form validator

2017-11-29 Thread Jacob Thomas
Thanks for the reply Sanders. Yes I saw some sample code which can do add/remove validators dynamically but can it derive it basis the country configuration that is maintained in the database table I mentioned in my question. If possible kindly provide sample/psuedo code for the same. For eg:

[AngularJS] Buttons and functions

2020-05-03 Thread Redwood Thomas
Hi, I am new to AngularJS and writing a simple script to invoke various functions based on the button clicked. Only Delete function is invoked and the other two functions are not invoked. Script is as below index.html is as below: https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angul

[AngularJS] How to use AngularJS ng-include?

2015-04-22 Thread Thomas Tong
I want to use AngularJS to separate my jquery mobile HTML. But it seems ng-include can't include external HTML as the parent content, parent CSS and js are not applied to it. Below is an example. Would you like to let me know how to fix it? Thanks a lot. http://plnkr.co/edit/I91t9mjGJ58ZS4H2b

Re: [AngularJS] ng-repeat seems elusive to me

2015-05-19 Thread Thomas Fee
How deep do you want to dig into it? I prefer a somewhat black-box approach and this ebook is free and truly excellent: http://www.angularjsbook.com/ On Tue, May 19, 2015 at 12:41 PM, Abbott Fleur wrote: > > Mo, > Thanks for those fixes. I was trying to "cheap-out" my learning curve by > just d

Re: [AngularJS] Re: Cannot get json from the server

2015-05-20 Thread Thomas Fee
The server is not returning Json; it's returning Xml. You need to change the method's expected and return format to Xml, e.g. maybe the URL should be like http://asdf/resource.json. The fact that then inner data is Json is misleading. On Wed, May 20, 2015 at 11:33 AM, mark goldin wrote: > Here i

Re: [AngularJS] Re: Cannot get json from the server

2015-05-20 Thread Thomas Fee
See this Rails example - http://edgeapi.rubyonrails.org/classes/ActionController/Responder.html The web server needs to know about request formats and have separate responders for these formats. On Wed, May 20, 2015 at 11:33 AM, mark goldin wrote: > Here is what the server returns: > > {"asset

Re: [AngularJS] Re: Cannot get json from the server

2015-05-20 Thread Thomas Fee
son. Is that what you > meant? > > On Wed, May 20, 2015 at 12:40 PM, Thomas Fee wrote: > >> See this Rails example - >> http://edgeapi.rubyonrails.org/classes/ActionController/Responder.html >> >> The web server needs to know about request formats and have s

Re: [AngularJS] Re: Cannot get json from the server

2015-05-20 Thread Thomas Fee
, mark goldin wrote: > I think that would be based on content-type? > > Dont have a tinniest idea. > > On Wed, May 20, 2015 at 1:10 PM, Thomas Fee wrote: > >> Tell me this: Suppose you make one request, in which you ask for JSON. >> Then a second request, in which y

Re: [AngularJS] Re: Cannot get json from the server

2015-05-20 Thread Thomas Fee
See this - http://stackoverflow.com/questions/1250060/rest-and-multiple-data-formats On Wed, May 20, 2015 at 12:14 PM, mark goldin wrote: > I think that would be based on content-type? > > Dont have a tinniest idea. > > On Wed, May 20, 2015 at 1:10 PM, Thomas Fee wrote: &g

Re: [AngularJS] Re: Cannot get json from the server

2015-05-20 Thread Thomas Fee
ldin wrote: > Dont understand your last message. Are you saying I need to send a > parameter to tell my code to return json? It's doing it already, it's > somewhere on way back to the client it's changed into xml. I think. > > On Wed, May 20, 2015 at 1:19 PM, Thomas Fee

[AngularJS] ngImgCrop Directive

2015-05-29 Thread Thomas Kennedy
I am using the ngImgCrop angular directive to resize and crop an image. However when I try and use it inside a UI Modal controller it doesn't work. The issue I believe is that the below line does not get properly set because the DOM is not created. The handlefileselect function never gets ca

[AngularJS] Re: ngImgCrop Directive

2015-05-30 Thread Thomas Kennedy
#x27;#fileInput')).on('change', handleFileSelect); },1); On Saturday, 30 May 2015 04:59:18 UTC+1, Sander Elias wrote: > > Hi Thomas, > > use a $timeout to execute your init in the next digest round. The view > will be ready by then, so you can attach y

[AngularJS] Re: ngImgCrop Directive

2015-05-30 Thread Thomas Kennedy
} }; } ]); On Saturday, 30 May 2015 08:45:59 UTC+1, Thomas Kennedy wrote: > > Hi Sander, > > I did it with a ten second delay but nothing worked. The timeout function > works as the console prints out here but yet again the handlefileselect > n

[AngularJS] Link Preview

2015-07-01 Thread Thomas Kennedy
Hi I was wondering if there are any angular modules that will preview links like Facebook does when a url is pasted into the textarea? Tom -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails

[AngularJS] Bind Datetimepicker's date with a $http get parameter

2015-07-18 Thread Thomas Caramella
econd controller is refreshed. Hope someone can help, Sincerely yours, Thomas Code : http://plnkr.co/edit/QzTMv0azLH1gm118O5jw?p=preview -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving email

[AngularJS] Re: Bind Datetimepicker's date with a $http get parameter

2015-07-18 Thread Thomas Caramella
Hello, In fact, bad conception of my app. Just need to fit datetimepicker and the $http request in the same controller, using a $watch to catch anychange to the date. Everything is synced now. Thomas var app = angular.module('app', ['ui.bootstrap']);

[AngularJS] ui-grid populated from json need to show different controls.

2015-10-13 Thread Richu Thomas
Hi, I want to populate a ui-grid with json data. The json contains row wise data as follows Header :id,firstname,data RowDefs: { "id": "1", "firstname": "Name1", "data": { "Control": "TextBox", "Value": 700 } }, { "id": "

[AngularJS] How to read text from file into a variable within a controller

2015-12-11 Thread Thomas Baine
Hi folks, I'm converting an agrichemical spray calculator app based on jQuery into an Ionic/AngularJS version - it is set up as a SPA. The app has several calculators and within each calculator there is background information text (html) that is presented within a single accordion element. Fo

[AngularJS] Re: How to read text from file into a variable within a controller

2015-12-14 Thread Thomas Baine
Thanks Sander, that was the non-json solution I'd been hoping existed/to find. Cheers/Tom On Monday, December 14, 2015 at 6:51:23 PM UTC+13, Sander Elias wrote: > > Hi Thomas, > > Have a look at ngInclude > <https://docs.angularjs.org/api/ng/directive/ngInclude

[AngularJS] Is anyone trying out Benchpress?

2015-12-15 Thread Thomas Inman
Hi all, I'm just interested in whether anyone is trialling the Benchpress module from Angular 2, and if so what your experiences are? I'm trying it myself and can get fairly stable results locally, but am struggling with how I can integrate it into a CI process. The results when run through Se

[AngularJS] anchorScroll working for position in middle of page but not to top of page.

2015-12-17 Thread Thomas Baine
e target id is unique and is placed in the h1 tag at the top of the page I cannot understand what I'm doing wrong - I've followed the same pattern in terms of code and target in both instances, yet only one works. Suggestions? Thanks/Thomas -- You received this message be

[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() System.co

[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, etc.js

[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 to

[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 ms

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 > w

[AngularJS] ngComponent Router - get current router

2016-05-13 Thread Thomas Handle
I´d like to use the component router to create a navigation list (e.g Home - Dashboards - Dashboard 1). I´m including my current view with . Do I have to add the component in every sub-component or is it possible to include it in 1 place? My main template: Then for example my article

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

2016-05-16 Thread Kyle Thomas
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" wrote: > >> I can run express b

[AngularJS] Hide Div via ng-if

2016-05-18 Thread thomas . wuest
Hello, i have a html code with two divs inside. On my old code i hide and them by the ng-hide directive. Now i must change this on ng-if and i have problems with it. My old Code: (function () { cip.controller('AuswahlCtrl', ['$scope', '$rootScope', function ($scope, $rootScope) {

[AngularJS] Re: ng-model issue inside ng-repeat.

2016-05-18 Thread Thomas Vishal
Hi Please link the ngApp with ngController *var MyApp =* angular.module('MyApp',['ngMaterial', 'ngMessages', 'material.svgAssetsCache']) *MyApp.*controller('quoteController', ['$http', '$scope', function($http, $scope) { On Monday, 16 May 2016 13:44:01 UTC+5:30, Navaneeth S wrote: > > He

[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 "@

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

2016-06-02 Thread Kyle Thomas
; > 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 through the Grun

[AngularJS] Creating buttons in Angular JS with Appery.Io

2016-07-15 Thread Thomas Aelbrecht
I'm trying to create a button with Appery.io, mobile application developmente provider. Below I'm asked to define an ng-click function when I click on the button B

[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

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

2016-08-26 Thread Kyle Thomas
ng there were 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 > wrote: > >> Is there a way to attach the Bearer token for each /api/ call out through >> some

[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: //localhost:3000/js/vendor/@angular/upgrade/src/angular_js.js:

[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 = data.groups[0].items

[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] 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 t

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 for every REST API call? I

[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', upgradeAda

[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 angul

[AngularJS] #variable not working as epected

2017-01-24 Thread Sean Thomas
I have two components new-product and product-form. In product-form the "form" variable is defined as follows: new-product has product-form nested in it as follows: Save However the form variable passed to save(form) is always "undefined". When I tested the same line of code for the button c

[AngularJS] Re: #variable not working as epected

2017-01-24 Thread Sean Thomas
A step forward. In product-form the statement form.value retrieves the values. However in new-product form.form.value is required. Any idea why? Kind regards Sean On Tuesday, 24 January 2017 23:23:48 UTC+13, Sean Thomas wrote: > > I have two components new-product and product-form.

[AngularJS] Re: #variable not working as epected

2017-01-25 Thread Sean Thomas
Hi Sander Thank you, that is very helpful. Code is now running. The "running" code example I was following had used the "form" variable for both the formGroup and the form itself which tripped me up. Thank you for taking the time to post, this is greatly appreciated. Kind regards Sean On Wednesda

[AngularJS] Angular moduleId in component libraries

2017-01-30 Thread Thomas Stephenson
I'm developing a angular project that has grown large enough to warrant increased modularization, so I went through the process of splitting out a lot of the components I use into separate libraries. These packages might in future be published via npm, but for the moment they are unpublished. F

[AngularJS] Lazy loading and authorization

2017-04-11 Thread thomas boissier
s approach feasible? Thank you, Thomas -- 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 emails from it, send an email to angular+unsubscr...@googlegroups.com. To post

[AngularJS] Re: Lazy loading and authorization

2017-04-12 Thread thomas boissier
Hi, @Sander Elias Ok I'll give it a try to see if it works seamlessly. @LongField I wish my concern didn't keep me from the benefits of compiling aot. Besides, I am not sure, but, is the imports field of "dynamicModule" flexible enough (regarding the static list of imports)? Thanks for sha

[AngularJS] Re: Lazy loading and authorization

2017-04-14 Thread thomas boissier
I am busy right now but I'll try it eventuallly. Regards, Thomas -- 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 emails from it, send an email to a

[AngularJS] Get the sum of a number when a new object is added

2017-04-24 Thread Robert Thomas
Hey Guys, I'm working on a demo app that let's a user add their budget to a list, I got everything working fine. The problem that I'm having is, let's say I have a budget of $10,000 and every time a new object is added the Actual Expenses is subtracted from the $10,000 budget. angular.module(

[AngularJS] HTML links to routes in Angular app

2017-08-03 Thread Thomas Baine
How do I (re)format links within an external html file that target different routes in an Angular 4 app to "work" without reloading the app when clicked. The external html file, containing text and links, gets loaded into one view and contains links to the second view e.g. ... blah blah blah.En

[AngularJS] Re: HTML links to routes in Angular app

2017-08-06 Thread Thomas Baine
get there. Cheers/Tom. On Friday, August 4, 2017 at 9:55:05 PM UTC+12, Sander Elias wrote: > > Hi Thomas, > > Here is a directive that takes anchors and rewrites them to use the router. > > import { Directive, ElementRef, ContentChildren, ViewChildren } from > '@angular/

[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: ComponentF

[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 Group

[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 Group

[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] use "function" in controller - scope cannot resolved

2015-06-17 Thread Thomas Kuntermann @lexmark
irable with this code example. Can anyone tell me, why this works for the tutorial and not locally for me?? (just downloaded an IDE and angularJS 1.3.16. Then created "index.html" file and the "ctrl.js" in subfolder "controllers")... Thanks in advance a

Re: [AngularJS] use "function" in controller - scope cannot resolved

2015-06-17 Thread Thomas Kuntermann @lexmark
sktop, showing the IDE and how he switches to the browser, executing "index.html") At least: THANKS for your quick answer:) BR Thomas Am Mittwoch, 17. Juni 2015 16:18:47 UTC+2 schrieb Leandro Parazito: > > Have you already declared your "myApp" and the controller "

Re: [AngularJS] use "function" in controller - scope cannot resolved

2015-06-17 Thread Thomas Kuntermann @lexmark
You're right :-P So maybe there is a bit of magic behind the scenes;) thx 4 your help. Am Mittwoch, 17. Juni 2015 16:42:39 UTC+2 schrieb Leandro Parazito: > > My advice: do not be stuck in an IDE :) > -- Lexmark Enterprise Software Deutschland GmbH Steinplatz 2, 10623 Berlin, Deutschland Gesch

[AngularJS] Re: [ANGULAR2][ROUTER-DEPRECATED] How to use router.navigate from child components without refreshing the parent component

2016-07-29 Thread Matthias Thomas Lamotte
+1 Same issue here! Let me know if you manage to fix it Thanks Mat -- 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