Re: [AngularJS] Angular 8 code clarification

2019-10-01 Thread Daniel Brookes
Looks to me like the isSelected function is expecting an individual "member" rather than memberList. memberList.id === this.selectedId will simply return true or false depending on if the property "id" of the object "memberList" is equal to this.selectedId. There is no looping involved. I would im

Re: [AngularJS] Re: Angular 7 add assets or stylesheets to a custom library

2019-03-07 Thread daniel steenberg
I can try putting it in an assets folder then build but I can also see that there is no assets listing for the package in Angular.json file. When I add one. I get a schema does not allow an extra parameter for assets. -- You received this message because you are subscribed to the Google Groups

Re: [AngularJS] Re: Angular 7 add assets or stylesheets to a custom library

2019-03-07 Thread daniel steenberg
Hi Sander, I can copy it manually but I was wondering if there is a build step I can add in the Angular.json file so that other people who work on this package don't miss this when publishing their changes. On Thu, 07 Mar 2019, 20:41 Sander Elias, wrote: > Hi Daniel, > > put them

[AngularJS] Angular 7 Export Assets/ External stylesheets to npm package.

2019-03-07 Thread daniel steenberg
Hi there, Im am trying to build a shared package which is imported into other packages with stylsheets that are used by all libraries, Main ideas is to have a shared pacakge. However when building this package, the styles folder that contains our list of scss files are not int the dist/lib

[AngularJS] Angular 7 add assets or stylesheets to a custom library

2019-03-07 Thread daniel steenberg
Hi there, How can u add raw stylesheets to a custom npm package in Angular 7? We have a shared package that contains stylesheets an ts files that gets used in other packages but the stylesheets are not in the dust folder on package build -- You received this message because you are subscrib

[AngularJS] angular

2019-01-03 Thread S. DANIEL DEEPAK
*Hi all* I am using ngx-admin for my project. The line chart animation is not shown when the page loading. Please tell some suggestion. Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from

[AngularJS] ngx admin

2019-01-03 Thread S. DANIEL DEEPAK
Hi!. In ngx-admin the chart animation is not working on page loading. -- 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...@g

[AngularJS] In ngx-admin theme, the the animations is not working on loading.

2019-01-03 Thread S. DANIEL DEEPAK
Hi. I am using ngx-admin theme. When loading the page the chart animation is not working. Tell some suggestions. -- 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

[AngularJS] Re: One Form with controls on multiple components.

2018-08-27 Thread daniel . patfield
#x27;), optDates: new FormControl('') }) ngOnInit() { this.addToGroup('incidentHeader',) } When I try to add this.incidentHeader to the 2nd argument - it says: *"Cannot invoke an expression whose type lacks a call signature."* On Monday, August 27, 2018 at 10:26:

[AngularJS] Re: One Form with controls on multiple components.

2018-08-27 Thread daniel . patfield
astUpdated: [''], id: [''], reoccurring: [''], status: [''], priority: [''], countriesImpacted: [''], bridge: [''], service: [''], pdl: [''], optDates: [''] }) On Friday, August 24, 2018 at 1:

[AngularJS] One Form with controls on multiple components.

2018-08-23 Thread daniel . patfield
I understand Angular forms using formGroup and formControls - but cannot figure out how to get everything all together. I have multiple components making up one giant form - each component is a section of the form. So the main component will show up on the app component's html. The problem i

[AngularJS] Re: Some Help For Optimising a @Pipe

2018-04-13 Thread Daniel Judd
Hi. I have take a look at the code. A lot of the stuff in there seems to be essential but I did edit the code. I hope it can be of some help: interface Dossier { datas: any[]; // I image this is an Array of a different interface. name: string; } @Pipe({name: 'search2'}) export class

[AngularJS] Re: Cannot read property account_group_name of null

2018-04-13 Thread Daniel Judd
The error is occurring before the check for null on account_group_name; this error is saying that sub_group_id is null i.e the code is trying to do accountgroup[null].account_group_name. Some values in the Object accountgroups are not formed as expected at the time of being retrieved. If these u

Re: [AngularJS] Re: Angular CLI - Define a region of code to be left out for production

2018-04-11 Thread Daniel Horne
Hi Thanks for getting back to me. The isDevMode looks like a flag, which I am not looking for. I got this information by importing the environment file. I see the ng-non-bindablle if for the actual views. I am looking for this type of functionality but in the .ts files so that I can mark a secti

[AngularJS] Ionic 3 for mobile experience and Angular 2 for desktop?

2017-09-04 Thread Daniel Serrano
I'm building an application that has two distinct user experiences, a mobile experience centered on uploading images and videos and a desktop experience centered on viewing the uploaded content. I had considered a PWA, but after researching realized that a mobile device's native camera interfa

[AngularJS] Benefits of using ASP.NET/MVC with a SPA Angular 2 app?

2017-06-06 Thread Daniel Bolton
What do you gain by using ASP.NET/MVC, if you are developing a purely Single Page Application using Angular 2? E.g. I've seen various tutorials about using Visual Studio Code and Angular 2.0 that does not leverage the ASP.NET framework at all. -- You received this message because you are subsc

Re: [AngularJS] Re: JavaScript Tutorial - Tour of Heroes

2016-12-10 Thread Daniel Zen
I highly doubt it. At this point I have fully embraced TypeScript. Even the requirement I had was dictated by the client. Although I am still aware of how to deal with Angular in ES6 without TypeScript, I don't use it much. And the syntax to use ES5 is ridiculous. -zen On Fri, Dec 2, 2016 a

[AngularJS] NonAngular Applicaation.

2016-09-13 Thread Daniel Safiński
I have one question. I would like to start to automate almost nonAngular applications (we have some part of frontend where we use Agular, but huge part of applications is nonAngular) and I think about Protractor. Do you have any experince? Is it a good choice or maybe someone else have differen

[AngularJS] Any React "detractors" in here?

2016-08-31 Thread Daniel Lidström
I'm a long time Angular user (since 2013). I've written quite a few SPAs very successfully using Angular 1.x. But, probably like a lot of people here, I'm very intrigued by React and what's going on "over there". I would like to know if anyone in this group has any experiences with React, coming

[AngularJS] Router activation events

2016-08-26 Thread Daniel Guisinger
Hello, I'm looking for a way to receive events "globally" when the router has finished activating a route. Here is the situation I have. I've got two controls I am using for navigation. One is a navigation sidebar, the other is a breadcrumb control. The system I've built automates the creatio

[AngularJS] Token Authentication through Angularjs

2016-07-22 Thread Daniel Balagula
access.factory('AuthenticationInterceptor', ['$q', '$location', '$localStorage', function ($q, $location, $localStorage) { return { 'request': function (config) { config.headers = config.headers || {}; if ($localStorage.token) { config.headers.

[AngularJS] Re: Angular2 app not working in IE 11

2016-06-27 Thread Daniel Cavanagh
I am seeing the same issue in ie9. have you found a work around? -- 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 t

[AngularJS] Re: Angular2 app not working in IE 11

2016-06-27 Thread Daniel Cavanagh
I am getting the same error in IE 9. have you found a workaround? On Wednesday, June 22, 2016 at 9:08:38 AM UTC-4, Jaroslav Loutocký wrote: > > I created application in Angular 2, now I am using RC1. I hoped that with > core.js 2.4.0 (no shims for IE) will be everything fine with Internet > expl

[AngularJS] Is there an equivalent of ngCsp for Angluar2?

2016-06-07 Thread Daniel Gartmann
http://stackoverflow.com/questions/37689047/is-there-an-equivalent-of-ngcsp-for-angluar2 -- 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...@googleg

[AngularJS] Canvas check drawing occupy areas

2016-05-29 Thread Chong Daniel
I had the following directive for canvas drawing: [code] 'use strict'; (function (window) { angular.module('zDir_Canvas', []); (function (module) { try { module = angular.module('pw.canvas-painter'); } catch (e) { module = angular.module('pw.canvas-p

[AngularJS] Re: Safari history bug in Tutorials & ES5/ES6 Tutorials

2016-05-05 Thread Daniel Zen
as Safari. It successfully navigates the route, but the state of the component is lost. Strange. Anyway, I've been trying to offer to write ES5/ES6 documentation, but haven't received any responses yet through any channels. Any suggestions on where I should reach out? Thanks, Danie

[AngularJS] Safari history bug in Tutorials & ES5/ES6 Tutorials

2016-05-03 Thread Daniel Zen
I've been working on JavaScript ES5/ES6 version for the Tutorials of "Tour of Heroes" . Besides Chrome, I have been spending some time in Safari because it still doesn't support arrow functions

[AngularJS] JavaScript Tutorial - Tour of Heroes

2016-04-28 Thread Daniel Zen
d the CLA, but I didn't put it in a separate branch, which may have been a mistake. Is there anyone that can help me get up to speed so I can help fill out the JS documentation. I'm sure I am not the only one waiting. Thanks, Daniel Zen -- You received this message because yo

[AngularJS] reusing factory/service multiple between different controllers

2016-03-19 Thread Daniel Eden
Hi guys, Im quite stuck at the moment, ive been attempting to use a factory or service to get chart data from a REST API endpoint within separate controllers but im having no luck. In essence i want to make a call to get some stats/chart data and pass that to my directive to chart (highcharts)

Re: [AngularJS] Re: Angular 2.0 for a commercial application

2016-02-18 Thread Daniel Lidström
ion as 2.0.0-beta6, as I'm writing. >> >> I think it's time to ask again, is there a release date now ? >> >> -- >> Leonel >> >> >> On Thursday, April 2, 2015 at 7:26:02 AM UTC-3, Daniel Lidström wrote: >>> >>> There's n

Re: [AngularJS] Re: No provider for $scope! exception with UpgradeAdapter (upgrading angular1 directive to angular2)

2016-01-19 Thread Daniel Smith
That answer doesn't really help. The poster comments that he is still receiving the error. I have come to notice that the error only seems to occur if you reference the Angular2 version of a downgraded Component whose template includes an upgraded AngularJS directive. On Tue, Jan 19, 2016 at 3:2

[AngularJS] Re: No provider for $scope! exception with UpgradeAdapter (upgrading angular1 directive to angular2)

2016-01-19 Thread Daniel Smith
I could also use some direction on this problem. On Thursday, January 14, 2016 at 6:09:44 PM UTC-5, Swapnil Sawant wrote: > > I am also stuck on this same error! > > On Wednesday, 13 January 2016 23:31:34 UTC-7, Abhi wrote: >> >> I am using UpgradeAdapter to use an angular1 directive in my angul

[AngularJS] Re: Angular2 Component Test?

2015-12-26 Thread Daniel
it('reverse order on each subsequent click', setupTestComponent((tc) => { tc.debugElement.query(By.css('.sortable-header li')).triggerEventHandler('click', null) tc.debugElement.query(By.css('.sortable-header li')).triggerEventHandler('click

[AngularJS] Re: Angular2 Component Test?

2015-12-25 Thread Daniel
.toEqual(true) }) })) it('second spec', injectAsync([TestComponentBuilder], (tcb: TestComponentBuilder) => { return tcb.createAsync(TestApp) .then((fixture) => { expect(false).toEqual(false) }) })) }) Any ideas? On Thursday, 24 December

[AngularJS] Angular2 Component Test?

2015-12-24 Thread Daniel
e Jasmine test page. Would really appreciate some input on how to best test a component such as this. I want to make sure it renders the list as well as the order of items when the sort method is run. Thanks, - Daniel -- You received this message because you are subscribed to the Google Groups

[AngularJS] Re: Dynamically add Component with Angular 2

2015-12-22 Thread Daniel
Hi, This is how I've solved it on my end @Component({ selector: 'test', template: 'TEST!' }) class Test {} class Loader{ ... ngOnInit() { var type = 'test' var clazz = type.camelize() // clazz = 'Test' this.loader.loadIntoLocation(eval(clazz), this.elementRef, 'dynamicInstance

[AngularJS] Angular2 one javascript file

2015-12-22 Thread Daniel
how to best sort this out. Thanks, - Daniel -- 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 group, sen

[AngularJS] are modules a thing in angular even for dart?

2015-12-22 Thread Daniel Davidson
A few very basic questions - not even *stackoverflow* worthy yet. This Arichitecture Guide does not have the word *controller* on it. A *Component* references a *template* which provides the view, and a *class* for behavior. Would y

[AngularJS] Re: Angular2: alpha 46: breaking changes to @RouteConfig?

2015-12-08 Thread Daniel Zuidinga
why isn't this mentioned in the breaking changes? It doesn't work for me with 'as'. Costed me several hours :/ Am Freitag, 13. November 2015 05:11:43 UTC+1 schrieb Eric Martinez: > > You should change "as" property to "name", the first one is still > supported but deprecated. > > new Route({

[AngularJS] Zapatec Calendar wrapping/integration in angularjs

2015-10-31 Thread Daniel
e link of Zapatec Calendar. http://www.kean.edu/~cpd/calendar/zapatec/zpcal/doc/wizard.html Suggestions or code is much appreciated. Many Thanks Daniel -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop re

[AngularJS] Re: Is Angular suitable for this?

2015-10-23 Thread Daniel Lidström
I'd say it depends on the existing project. If you already have loads of jQuery then stick to that. Unless you are in an area fairly separate from the rest. Try to keep down the confusion in the team, so to speak. But sure, it is a nice way to start learning about Angular. On Wednesday, 21 Octo

[AngularJS] Success stories with flux-angular?

2015-10-02 Thread Daniel Lidström
I'm very interested in the flux architecture. Specifically the ability to "collect" actions into a central place. I've seen my typical AngularJS code become a mess of actions spread here and there and I think the flux architecture would be very helpful. Is there anyone here who has used https:/

Re: [AngularJS] Re: Is it possible to export HTML to PDF or generate pdf in AngularJs without Using Other JS reference like jSPDF, PHANtom,etc

2015-09-25 Thread Daniel Lidström
Oops sorry, I read phantom only. Friday afternoon dyslexia… Disregard! — Daniel On Fri, Sep 25, 2015 at 3:57 PM, Sander Elias wrote: > Hi Daniel, > The OP specifically asked for something that's NOT jspdf. > Regards > Sander > -- > You received this message bec

Re: [AngularJS] Consume Async REST web service in AngularJS

2015-09-25 Thread Daniel Lidström
Try this: service.GetAllSensors = function () { return $http.get('http://localhost:8080//xx/xx') .then(function x) { return x.data; }); }; On Thursday, 24 September 2015 08:09:12 UTC+2, Mahendra Gurav wrote: > > Hi, > >I am using REST web service which is developed in Java. Below i

[AngularJS] Re: Is it possible to export HTML to PDF or generate pdf in AngularJs without Using Other JS reference like jSPDF, PHANtom,etc

2015-09-25 Thread Daniel Lidström
Yep, here's how: http://mrrio.github.io/jsPDF/ On Wednesday, 23 September 2015 15:32:05 UTC+2, Dev Kant kumar wrote: > > Hi Developer, > > I need to export any HTML (Div) to PDF using AngularJs only. > or can say need to generate PDF using AngularJS. > I done googling much more but not able to get

[AngularJS] Re: Messaging users from Web API 2.0

2015-09-14 Thread Daniel Lidström
Here's an example api (for creating tasks) that combines success response status codes with error validation responses: https://github.com/dlidstrom/Tasks/blob/master/Tasks/Controllers/Api/TaskController.cs Is this what you were asking for? On Friday, 11 September 2015 19:34:38 UTC+2, mark gold

[AngularJS] Re: Following the AngularJS tutorial, getting errors in installation

2015-05-28 Thread Daniel Quinn
Its hard to tell with the limited context, but it looks like you're running npm install in the wrong directory(D:\Code\nodejs). You should be running npm install where you cloned the angular-phonecat repo. On Wednesday, May 27, 2015 at 4:26:46 PM UTC-4, Randy Volkart wrote: > > Hello, > > I'm te

[AngularJS] Sharing data with service

2015-05-02 Thread 'Daniel Cohen' via AngularJS
Hi Greg, Take a look at factory's.. But if you really want to use a service, put the $http,get calls into a service method that returns a promise.. Then you can be notified when the value in the service gets updated. Daniel -- You received this message because you are subscribed t

[AngularJS] Re-usable Components and Link Generation

2015-04-30 Thread Daniel Herman
I'm trying to create a component that can be re-used in multiple applications across my company, however I'm having trouble figuring out how to handle link generation. For the sake of this example, let's say I have 2 applications - Alpha and Bravo. A standalone component of application Alpha m

[AngularJS] Re: How to make angular application crawlable to search engines

2015-04-29 Thread Daniel Lidström
You need to detect the search engine when it comes to visit. You can do this by adding a meta element to your page: With this element googlebot will visit your page like this: http://example.com?_escaped_fragment_= You'll need to involve your backend to serve static pages when you detect the

[AngularJS] Re: how to disable previous page when clicking on browser back button

2015-04-24 Thread Daniel Lidström
You can cancel navigation. There's an event you can listen to. A google search should get you on the right track. On Friday, 24 April 2015 12:29:02 UTC+2, Nandakumar R wrote: > > HI, > how to disable previous page when clicking on browser back button? > -- You received this message becaus

[AngularJS] Re: Angular 1.3 vs 2.0

2015-04-24 Thread Daniel Lidström
I am using 1.3 for all my new apps. It is working great for me. For me I am happy with what 1.x is providing. I can't really see that change within the next few years. What problems do you think 2.0 would solve that you can't do (or is hard) in 1.3? On Friday, 24 April 2015 11:56:44 UTC+2, Jots

[AngularJS] Re: Angular 2.0 for a commercial application

2015-04-02 Thread Daniel Lidström
There's no release date set for Angular 2. You're *much* better off doing your SPA with Angular 1. On Thursday, 2 April 2015 11:48:40 UTC+2, Shivanka de Silva wrote: > > Hi, > >Would Angular 2 be stable enough to be used in a client SPA application > ? version u all have s alpha and would

[AngularJS] Re: Can angular detect if website was restarted?

2015-03-25 Thread Daniel Lidström
mp; nvp["v"] != Application.GetAppVersion()) { actionContext.Response = actionContext.Request.CreateErrorResponse( HttpStatusCode.UpgradeRequired, "Det finns en nyare version, vänligen ladda om sidan");

[AngularJS] Re: Intent to Implement CommonJS Support

2015-01-22 Thread Daniel Lidström
Your arguments are making perfect sense to me. Paul and Adam, many thanks for sharing your thoughts! On Wednesday, 21 January 2015 23:15:34 UTC+1, Paul Everitt wrote: > > > > On Wednesday, January 21, 2015 at 7:52:11 AM UTC-5, Daniel Lidström wrote: >> >> Hi Adam >&

[AngularJS] Re: where to put *.js file

2015-01-21 Thread Daniel Lidström
I'm writing an ASP.NET MVC + WebAPI website with AngularJS. I put the js files into wwwroot/app in my web project. On Tuesday, 20 January 2015 16:13:46 UTC+1, Ahmet Temiz wrote: > > Hello > > I am new to Angularjs. > > let me know what the proper place is to put ex. js. file. > > regards > -- Y

[AngularJS] Re: Intent to Implement CommonJS Support

2015-01-21 Thread Daniel Lidström
Hi Adam May I ask what problems you are solving with RequireJS and putting each file in its own Angular module? Even 170 source files could be bundled, minimized, compressed, and loaded up front, don't you think? And why so many modules? I'm just being curious. On Wednesday, 21 January 2015 01

[AngularJS] Re: Optimizing angularjs

2015-01-15 Thread Daniel Lidström
I think they do a good job detailing the pro's and con's: + much faster rendering - depends on AngularJS internals - can reduce testability On Saturday, 10 January 2015 08:28:53 UTC+1, Sasikumar Veeraiah wrote: > > Hi all, > > Recently i red one article about optimizing angular js > http://blog.s

[AngularJS] ng-repeat breaking inside table, also breaks with ng-if

2015-01-13 Thread Daniel Rigby
Hello i'm trying to display data inside a table, which is suppose to display a few separate type of table data depending on what link is selected at the time. I'm using ng-repeats inside a table class and using divs sadly to do the repeats. Once i get to the tags within the code i can't seem t

[AngularJS] Re: Promise is maintained when i navigate back and forth. How to reset a promise, so that new data is retrieved instead of old data?

2014-12-22 Thread Daniel Lidström
$http returns a decorated promise which cannot be used within the routing system (as dependencies that should be resolved before switching route). Which is very unfortunate because it creates unnecessarily complicated code. On Monday, 22 December 2014 06:52:31 UTC+1, Darlan Alves wrote: > > It's

[AngularJS] Re: controllerAs vs $scope

2014-12-14 Thread Daniel Lidström
The style guide is nice, you will learn a lot from it. One thing *I *don't agree with is the 'vm' as you have below. Just do this: var settings = this; settings.data = ... Then use the same in your markup: ng-controller="SettingsController as settings". Benefits: instant recognition both in mark

[AngularJS] Re: Exposing Properties with Google Closure and Angular

2014-12-10 Thread Daniel Lochrie
Sorry, correction above: "widget" should be "widgets". So: My ng-repeat will never work, because *widgets is renamed using > ADVANCED_OPTIMIZATIONS. On Wednesday, December 10, 2014 8:40:47 PM UTC-6, Daniel Lochrie wrote: > > I'm working on integrating Closu

[AngularJS] Exposing Properties with Google Closure and Angular

2014-12-10 Thread Daniel Lochrie
I'm working on integrating Closure into my Angular project, and so far so good. Building is fine, goog libraries are fine, etc. However, I am having some issues with property renaming. Specifically: Controller Code: /** * Updates the current list of widgets. * @export */ name.space.widgetCon

Re: [AngularJS] Drag drop in angular js

2014-12-04 Thread Daniel Johnson
On Thu, Dec 4, 2014 at 7:25 AM, Neha Agrawal wrote: > Hi friends, > i have two list. I want to drag from one list to another list and i want to > drag in same list. I first tackled this at least 18 months ago using angular-ui-sortable, but I found that in my use case it had terrible bugs where li

[AngularJS] Unit test the type of $http request with $httpBackend

2014-11-27 Thread Daniel Lidström
Does this help? https://github.com/dlidstrom/MinaGlosor/blob/master/MinaGlosor.Test/Web/spec/wordlistservice.spec.js -- 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

[AngularJS] Re: AngularJS - Google Analytics embed API - ngAnalytics

2014-11-27 Thread Daniel Lidström
Johanna, thank you for clarifying. Now I see the difference clearly! Have a nice day :-) On Thursday, November 27, 2014 9:34:14 AM UTC+1, Johanna Gaßmann wrote: > > Hey Daniel, > > well, thanks for your post. > Yes, we have seen the libraries. But those once you bring u

[AngularJS] Re: AngularJS - Google Analytics embed API - ngAnalytics

2014-11-26 Thread Daniel Lidström
Hi Johanna Thanks for sharing your library. I've noticed there are already a bunch of libraries available for connecting AngularJS apps with Google Analytics: - http://luisfarzati.github.io/angulartics/ - https://github.com/revolunet/angular-google-analytics - https://github.com/panrafa

[AngularJS] Re: any advice for beginner

2014-11-12 Thread Daniel Lidström
I have a resource available here: http://angularjs-slides.azurewebsites.net/ It is very simple and will teach you a little bit about AngularJS. Come back here when you have questions :-) Don't be put off by the comments about AngularJS 2.0. You should learn what is out there today (1.3). The conc

[AngularJS] Re: Prevent AngularJS from messing with anchored URLs

2014-10-23 Thread Daniel Flores
I still have this problem, actually I got to handle this using a little hack before AngularJS var location = window.location.href; var index = location.indexOf('#'); if (index > 0 && window.location.pathname == "/") { window.lastHash = window.location.hash; window.location.hash = "!"; }

Re: [AngularJS] ngRoute keeps refreshing the page. Please help

2014-10-04 Thread Daniel Johnson
> function formStorageFunc() { > return {}; > } > angular.service('formStorage', formStorageFunc); > > // in directive > $scope.formData = formStorage(); Forgot to past reference URL http://stackoverflow.com/questions/14324451/angular-service-vs-angular-factory -- teknotus (Take Notice) -- Y

Re: [AngularJS] ngRoute keeps refreshing the page. Please help

2014-10-04 Thread Daniel Johnson
> my problem is every time I go to a different view the page refreshes > therefore I'm unable to access the factory service. The data being sent from > Factory gets reset. ng-view runs the controller initialization every time the url changes so if there is any code like $scope.something = { } you

Re: [AngularJS] AngularJS Cache Busting for Scripts and CSS

2014-10-01 Thread Daniel Lidström
Actually, even the html partials are cached correctly by IIS (not IIS express mind you). From what I can tell it all works fine.— Daniel On Wed, Oct 1, 2014 at 5:23 PM, Mark Volkmann wrote: > I see how this prevents issues with CSS and JavaScript being cached, but > don't you st

[AngularJS] Re: AngularJS Cache Busting for Scripts and CSS

2014-10-01 Thread Daniel Lidström
I'm using IIS and it will handle cache busting for me. As long as I serve my scripts as files (i.e. no magic) IIS will send along an ETag. This is respected by modern browsers and acts as a cache buster. On Tuesday, September 30, 2014 2:32:11 PM UTC+2, Rajaram wrote: > > I am developing AngularJ

[AngularJS] Re: Loop exiting after first iteration is driving me nuts.

2014-09-29 Thread Daniel Turner
Ok... still tearing my hair out on this. Here is my entire controller code. If anyone could help me figure out how this search is dying, that'd be great. 'use strict'; var costControllers = angular.module('costControllers', ['ngGrid']); //Get JSON costControllers.factory('itemJSON', function

[AngularJS] Re: Loop exiting after first iteration is driving me nuts.

2014-09-29 Thread Daniel Turner
Ok... still tearing my hair out on this. Here is my entire controller code. If anyone could help me figure out how this search is dying, that'd be great. /** * Created by Daniel on 6/3/2014. */ 'use strict'; var costControllers = angular.module('costControllers',

[AngularJS] Re: Loop exiting after first iteration is driving me nuts.

2014-09-29 Thread Daniel Turner
Thanks for the reply Sander. I'm gonna give that a shot and see what happens. I'll let you know, for sure. On Monday, September 29, 2014 5:08:15 AM UTC-5, Sander Elias wrote: > > Hi Daniel, > > My guess, without seeing the rest of your code is that you don’t need to >

[AngularJS] Loop exiting after first iteration is driving me nuts.

2014-09-28 Thread Daniel Turner
I know this is just a small error somewhere, but I can't spot it. I've been playing around with the code at this fiddle, http://jsfiddle.net/SAWsA/11/, trying to learn angular. The code worked quite well, after a few fixes were made to it. I then added in a get, to pull the data from a json file

[AngularJS] Re: ng-href doesn't support 'SHIFT+Click' to open in a new window

2014-09-12 Thread Daniel Sinclair
|| event.which == 2) return; On Friday, September 12, 2014 11:22:46 AM UTC+1, Daniel Sinclair wrote: > > I'm using ng-href along and HTML5 mode with $routeProvider and it works > nicely. Once I stopped using ng-click and relied on the routing even > CTRL+Click opens in a new t

[AngularJS] ng-href doesn't support 'SHIFT+Click' to open in a new window

2014-09-12 Thread Daniel Sinclair
I'm using ng-href along and HTML5 mode with $routeProvider and it works nicely. Once I stopped using ng-click and relied on the routing even CTRL+Click opens in a new tab. However, SHIFT+Click doesn't appear to work properly and open a new window as it should. Shouldn't ng-href detect the shi

[AngularJS] Re: Angular template and .NET Partial Postback

2014-09-04 Thread Daniel Ferens
any one? Please? -- 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 group, send email to angular@googlegroups.c

[AngularJS] Angular template and .NET Partial Postback

2014-09-03 Thread Daniel Ferens
I have trouble to get angular working with .Net partial postbacks. Question is basically same to this : Re-initialize Angular bindings after partial postback Basically i have tab on which i hav

[AngularJS] Re: ngMaterial - ETA? using it right away?

2014-09-01 Thread Daniel Lidström
That is just so cool! And it seems a lot more useful than famo.us. I wonder why this has not been advertised yet. On Sunday, August 31, 2014 9:45:33 PM UTC+2, Sathish VJ wrote: > > Is there a prescribed way of using ngMaterial ( > https://material.angularjs.org/) right away? Any documentation an

[AngularJS] Re: Notifying $viewChangeListener subscribers on ngModel change.

2014-08-19 Thread Daniel Ortega
Hi Alex, I can't see how that would make the $viewChangeListeners subscribers to be called as the code inside ngModelController is missing those calls. Anyway, I just wrapped my code inside the usual block to call $digest or $apply if not in $$pashe and had the same result. I can make my code

[AngularJS] Notifying $viewChangeListener subscribers on ngModel change.

2014-08-18 Thread Daniel Ortega
Hi everyone, I've just run into a problem when developing a custom directive using the ngModel Controller. I'm adding a custom function to the $viewChangeListeners list so I get notified whenever the value changes, and everything was working fine until I manually changed the value of the ngMod

[AngularJS] Re: Set up two states with the same url, one for logged in users and one for everyone else.

2014-08-05 Thread Daniel Lidström
I check this server side. If you're not logged on, I show a non-angular page for that on '/' that allows you to log on. When you're logged on, I show another page for '/' that contains the angularjs stuff. This should be possible with express. On Wednesday, July 30, 2014 7:58:08 AM UTC+2, Damie

[AngularJS] Re: Angular Way to control a Directive from Controller?

2014-07-30 Thread Daniel Pedro dos Santos Fernandes
Hi @Chris and @David. I did this code a long time ago (https://groups.google.com/d/msg/angular/htKUVVNhi7A/mehPM_zaQhMJ). So, you can check a very simple way to deal with it here: http://jsfiddle.net/Fb49w/1/ Cheers, Daniel. On Wednesday, July 30, 2014 4:01:32 PM UTC-3, Christian Maniewski

[AngularJS] Display only first 3 items with ng-repeat

2014-06-17 Thread Daniel D
Hey guys, Quick question. How can I use ng-repeat but only show the first 3 items? I tried using this: ng-if="$index % 3 == 0" but I'm not getting the results I wanted. Where did I go wrong there? Thanks for your help. -- You received this message because you are subscribed to the Google Group

[AngularJS] Re: AngularJS - Ng-repeat - Select2 JS - Issue setting default value

2014-06-06 Thread Daniel Turner
Set one option, inside your select like so... Please select.. You can have one available to use, like this. And then if you're still pull the empty white space, give yourself an ng-model on the select and then set your ng-model to null in you js. On Friday, June 6, 2014 12:29:12 PM UTC-5, Jay

[AngularJS] Re: ngRoute: Uncaught object

2014-06-05 Thread Daniel Turner
Hey man... you had typos everywhere in your code. In your config, you spelled otherwise -> otherwhise. And there were quite a few others. I redid it on plunker, for you. Check it out, working. --plunker On Thursday, June 5, 2014 6:47:16 AM U

Re: [AngularJS] This is probably a dumb question, but could someone help me, please? It's about selects.

2014-06-05 Thread Daniel Turner
June 5, 2014 7:12:38 PM UTC-5, César Costa wrote: > > http://plnkr.co/edit/s8SLJ30VfGFrSbDWSAGY > > > 2014-06-05 19:43 GMT-03:00 Daniel Turner >: > >> Hey guys, >> >> I was using this tutorial, Mixing Static And Dynamic Options In An >> AngularJS Sele

[AngularJS] This is probably a dumb question, but could someone help me, please? It's about selects.

2014-06-05 Thread Daniel Turner
Hey guys, I was using this tutorial, Mixing Static And Dynamic Options In An AngularJS Select Menu (plunker here... ), which works just fine..

Re: [AngularJS] CSS issues after enabling AngularJS

2014-06-05 Thread Daniel Plomp
Yeah, I'm sorry. I should have been more clear: it is not about the active states. That is working fine. It is about the margin and padding that seems to have gone. There should be some padding between the boxes. Like I said: there are no other classes, other than the Angular classes that are be

[AngularJS] CSS issues after enabling AngularJS

2014-06-04 Thread Daniel Plomp
Hi all, I've a weird issue when using AngularJS. I have a simple with some items: iDEAL Machtiging Anoniem doneren Persoonlijk doneren This renders 4 blocks, like in image 1 (right) When I enable AngularJS I changed the code to this: {{ item }} {{ item }} Which then shows me the output

[AngularJS] Re: problem with dynamic default input data using ng-model

2014-06-04 Thread Daniel Turner
You're not referencing your value anywhere. HTML -- JS --- var tripsheetBuilder = angular.module('tripsheetBuilder ',[]); tripsheetTotal.controller('tripsheetTotal', function ($scope){ var input = ["1", "2", "7"]; //Test for array, you want to pu

Re: [AngularJS] Re: Angular Way to control a Directive from Controller?

2014-06-03 Thread Daniel Pedro dos Santos Fernandes
Awesome, I'll do a try on that. The design is great. Thanks for share with us. Daniel Pedro dos Santos Fernandes - *Phone*: +55 (35) 3422-7343 *Mobile*: +55 (35) 8701-0095 *E-mail*: daniel...@gmail.com *|* daniel.pedro_fernan...@hotmail.com === Turn

[AngularJS] Re: how to use jquery inside partials

2014-05-30 Thread Daniel Lopez
Hi Rafal, Thanks for your reply. I will study your example and see if i can make my app works. Thk Quinta-feira, 29 de Maio de 2014 10:23:06 UTC+1, Daniel Lopez escreveu: > > Hi, > > I'm trying to to use some jquery inside a partial. what I want to do is a > .slideToggle(

[AngularJS] Re: how to use jquery inside partials

2014-05-30 Thread Daniel Lopez
Hi Luke, Thanks for your reply. I have been reading about directives but i don't understand how can i use my script and convert it to a directive. Can you help me? Thk -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this grou

[AngularJS] how to use jquery inside partials

2014-05-29 Thread Daniel Lopez
Hi, I'm trying to to use some jquery inside a partial. what I want to do is a .slideToggle() of a div, inside a partial. this is my script $(".glyphicon-minus").click(function (event) { //ocultar grafico (panel body) var status = $(event.target).attr('id').split("_"); $("#acco

[AngularJS] External js function with ngView

2014-05-28 Thread Daniel Lopez
Hi, I have an app that will get some data and then present it as charts in a html file, but i had too split the code or else i would have a file with lots of loc, so i've implemented route and views. But now i have a problem, some of the code of each view as some javascript function associated

[AngularJS] Re: I am trying to build an app that gets the users current location

2014-05-23 Thread Daniel Mills
Thanks Very Much On Thursday, May 22, 2014 6:59:00 PM UTC+1, Denis O'Sullivan wrote: > > Hi Daniel, this is serendipity! I just subscribed to ng-newletter.com, as > part of the subscription they sent me a free cookbook link: > http://ng-cookbook.s3.amazonaws.com/ng-cookbook.

  1   2   3   >