[AngularJS] Re: [angular2] Observable and ChangeDetectionStrategy.OnPush question

2016-06-22 Thread Zlatko Đurić
Minor correction - when I wrote "*your Input is always parent component's `data$` observer. Observer did not change.*" I should have said Observable instead. And an addition: "*If you don't subscribe to observables, they don't run, from what I've learned so far.*" I've learned this when my

[AngularJS] Re: [angular2] Observable and ChangeDetectionStrategy.OnPush question

2016-06-22 Thread Zlatko Đurić
Hello, I can try, as a method of learning myself about change detection :) On Tuesday, June 21, 2016 at 7:35:22 PM UTC+2, Christophe HOARAU wrote: > > Hi, > > Could someone help me understand why my view is not updated in the > following plunker

Re: [AngularJS] Re: [angular2] Observable and ChangeDetectionStrategy.OnPush question

2016-06-22 Thread Zlatko Đurić
Yeah, did you check the last section of that linked article? TL;DR: since the observable ref does not change, you need to: - inject change detector ref to your component - call changeDetector.markChanged() in that subscription callback. Look for more details closer to the end of the article.

[AngularJS] 3rd party Datatable plugins with angular2 tabs

2016-06-20 Thread Zlatko Đurić
I've had a similar issue with MDL, what worked for me was wrapping the call to the third party plugin in another `setTimeout(fn, 0);` in one of those after init hooks. Don't know if it's your case to but maybe it can help if you don't find a better solution. -- You received this message

[AngularJS] Re: Angular2 rc.0: index.html no longer includes any Angular files??

2016-06-23 Thread Zlatko Đurić
As always, the answer is "it depends". How are you loading and bootstrapping your app? Is it systemjs, like the quickstart example? If yes, then when with your systemjs you '*import*' something like '*app/main*', that *app/main* will in turn *import { bootstrap } from

Re: [AngularJS] Re: Search in Columns

2016-06-26 Thread Zlatko Đurić
. On Sunday, June 26, 2016 at 11:32:45 AM UTC+4:30, Zlatko Đurić wrote: On Saturday, June 25, 2016 at 9:08:30 PM UTC+2, Shiva Rowshan rad wrote: Hi everyone I have a Json Data which I showed in rows with 2 columns. I put a search box to show the search results by filter

[AngularJS] Re: Search in Columns

2016-06-26 Thread Zlatko Đurić
On Saturday, June 25, 2016 at 9:08:30 PM UTC+2, Shiva Rowshan rad wrote: > > Hi everyone > I have a Json Data which I showed in rows with 2 columns. I put a search > box to show the search results by filter . but it does not work correctly . > Sometimes it shows both data and its next index ,

Re: [AngularJS] Re: Search in Columns

2016-06-27 Thread Zlatko Đurić
Well then maybe stackoverflow or some ionic forum might be good next steps, if you can't find the issue. On Monday, 27 June 2016, Shiva Rowshan rad wrote: > yes Ionic has row and col classes for grid and i used in my code. > > -- > You received this message because you are

[AngularJS] Re: angular component router deprecated in v1.5.7-build.4877 (snapshot)?

2016-06-16 Thread Zlatko Đurić
I've just updated an ng2 app from router@2 to router@3(called Vladivostok btw) and the changes, once your app is already componenty, are mostly trivial. Granted, it's for an ng2 app, but the new router seems to be easier to grasp. I think breaking up your app into components is a good step

[AngularJS] Re: which backend technology should i choose to develop a video site similar to youtube

2016-06-16 Thread Zlatko Đurić
On Wednesday, June 15, 2016 at 2:21:07 PM UTC+2, ömer iyiöz wrote: > > Hello, i'm learning angular.js. And i need to learn a backend technology > but i cannot decide which one to choose. My plan is to develop a website > similar to youtube. Number of users expected for this site can reach to 1

[AngularJS] Re: Edit PDF on the fly in angular

2016-04-13 Thread Zlatko Đurić
Well from the angular-pdf code you can see two things: they use pdf.js, and they don't expose annotation capabilities. So you would have to extend the angular-pdf code (fork it, do the changes, maybe submit a PR back). You would have to expose the annotation functionality yourself and wrap it.

[AngularJS] Re: 5 min quickstart -Angular 2

2016-04-09 Thread Zlatko Đurić
I believe you need to `import App from './app/app.component';` Not sure without seeing the code in main though. On Friday, April 8, 2016 at 8:54:06 PM UTC+2, Ana Caroline Ferreira wrote: > > Erro: > app/main.ts(2,28): error TS2307: Cannot find module './app.component'. > > And dirs is like

[AngularJS] Re: Angular 2 Stripe Component

2016-04-11 Thread Zlatko Đurić
I suspect this is because your response handler is ran outside of the Zone? On Sunday, April 10, 2016 at 5:38:14 PM UTC+2, Fabio Tisci wrote: > > I've created one... even though is not updating properly after I get the > successful payment: > > onSubmit(form):void{ > this.form = form; >

[AngularJS] Re: Save Variable Globally - AngularJs 2 + Typescript

2016-04-11 Thread Zlatko Đurić
On Monday, April 11, 2016 at 2:57:46 AM UTC+2, Hiren Modi wrote: > Please help me to know how to save the Json Variable values globally in > the system developed in Angularjs2 + Typescript. > > In Angularjs 1, we were using Rootscope to globally declared the values to > access. Is there any

Re: [AngularJS] Re: Angular2: http service fail to get json data

2016-04-22 Thread Zlatko Đurić
mail.com> wrote: > @Zlatko Đurić > > thanks for your help. > > that's right, after log "this.jobs" in subscribe function, it's working > fine. > > but another problem is: > when I use ngFor to loop this.jobs, it also get an error "EXCEPTION: > C

[AngularJS] Re: Angular 2, input decrator/ passing value clarification

2016-04-22 Thread Zlatko Đurić
On Friday, April 22, 2016 at 9:07:08 PM UTC+2, Dawg wrote: > > Hello everybody, > > > > Not certain, but I'm pretty sure it's working because of `[]` above. By putting the square brackets around the property, you explicitly declare it as a property (since there's no native html attribute

[AngularJS] Re: Angular 2, input decrator/ passing value clarification

2016-04-22 Thread Zlatko Đurić
On Friday, April 22, 2016 at 9:07:08 PM UTC+2, Dawg wrote: > > Hello everybody, > > > > Not certain, but I'm pretty sure it's working because of `[]` above. By putting the square brackets around the property, you explicitly declare it as a property (since there's no native html attribute

[AngularJS] Re: Angular2: http service fail to get json data

2016-04-22 Thread Zlatko Đurić
Oh, that's because your jobs have not been fetched yet. When ou call getJobStatus() on jobService, it merely fires the request. It does not complete the request. So your code is executed like this (from ngOnInit forward): - this.getjobsStatus() // on jobsComponent - getjobsStatus calls

[AngularJS] Re: problem with controller

2016-04-24 Thread Zlatko Đurić
On Sunday, April 24, 2016 at 2:45:55 AM UTC+2, Star Apps wrote: > > Hello, > > I´m having troubles doing AJAX with $http > > I´m doing something wrong, can you help me please > > Somebody probably could help you. But you didn't ask a question - just said you have troubles doing AJAX. What kind

[AngularJS] Re: Job Role: Hyperion Workforce Planning / Location- Woonsocket, RI / Contract

2016-05-17 Thread Zlatko Đurić
This message shows why moderation on Node.js list is worth a small delay in seeing your post - no spam. On Monday, May 16, 2016 at 8:15:24 PM UTC+2, Vinay jais wrote: > > Hello, > > > > Hope you are doing great! > > We have below Job opportunity with our reputed client. > > Please find

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

2016-05-13 Thread Zlatko Đurić
On Thursday, May 12, 2016 at 6:30:31 PM UTC+2, Kyle Thomas wrote: > > Is it possible to start up node and have both run on the same port? > Node app as a backend API and the angular app as a frontend? Yeah, relatively simple, if you let Node serve your angular stuff. Look up express.static()

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

2016-05-16 Thread Zlatko Đurić
hybrid >> with the upgradeAdpater so I can run both. The yeoman generator was running >> everything through the .tmp. >> >> I guess I'll look into seeing if I can modify the Grunt script to serve >> everything up. >> >> On Sat, May 14, 2016 at 9:56

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

2016-05-13 Thread Zlatko Đurić
Oh, well, that's because you didn't build your Angular app for deployment. Try running "npm build" if you're using one of the more popular packs. Then you'll get a "dist/production" directory or something similar - _that_ is the folder you need to serve. (Or at the very least, look in your

[AngularJS] Re: Angular 2 Roadmap/Planning

2016-05-03 Thread Zlatko Đurić
I agree with Günter, you need to choose on your own. Yes, there is no timeline. Yes, Google cares a bit less then it might about this. But they're not building Angular for you and me, they're mostly building it for themselves. So choosing Angular was a risk for me from the start, but the

[AngularJS] Re: angularjs 2 route parameters not working

2016-05-03 Thread Zlatko Đurić
On Monday, May 2, 2016 at 1:45:35 PM UTC+2, Bert Huygens wrote: > > > > When i try to use a url with parameters like : > http://localhost:3000/visit/:id i get an error > > ReferenceError: System is not defined > > > How are you rendering your nav links? Maybe you're loading the template files

[AngularJS] Re: ng-init Similar Functionality in Angular2

2016-05-02 Thread Zlatko Đurić
On Sunday, May 1, 2016 at 10:34:38 PM UTC+2, Sourav Dutta wrote: > > I need to know, How can I achieve similar functionality in angular2. > > There are several ways, depending on what you need. The simplest being - just asign the value in the constructor. But also take a look at Lifecycle

[AngularJS] Re: Drop Down list data binding Angular 2

2016-05-05 Thread Zlatko Đurić
It sounds too simple to be ok, but... Don't you need an ngModel on too? I have a here that works when "variable" is set programatically, so I'd expect you need the same? -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this

[AngularJS] Re: Angular 2: Best Practice for routing properties of a subcomponent

2016-05-05 Thread Zlatko Đurić
On Wednesday, May 4, 2016 at 11:11:14 PM UTC+2, JM wrote: > > > Is there a chance to include the creation of secondsChange with the > @Output decorator from inside the @InAndOut decorator. > So I could reduce the lines: > > > @InAndOut public seconds:number = 0; > @Output("secondsChange")

[AngularJS] Re: Angular JS binding when back from diffrent page

2016-04-16 Thread Zlatko Đurić
I think you refer to regular web, not a single page app. The answer on how to share state between controllers on completely different pages, or on the same page after a page reload (or navigate and cone back later) is still the same -service. You need a service that can preserve state. Whether

[AngularJS] Re: angular 2 new router

2016-08-11 Thread Zlatko Đurić
On Wednesday, August 10, 2016 at 9:00:44 PM UTC+2, Przemysław Fieluba wrote: > > > import { Routes, RouterModule } from '@angular/router'; > > > /@angular/router/index"' has no exported member 'Routes'. > > If you're using router version 3+ (check in your package.json), I think they lost the

[AngularJS] Re: Router - can't get static route data from service

2016-08-12 Thread Zlatko Đurić
Not sure if I understood correctly: you're saying that you want the route data on a service? I don't think that's how it works, and frankly, I don't see how it can work that way. If you have a service, that is by definition *not* tied to a single route, why would you want hardcoded (from

[AngularJS] Re: Code review

2017-02-03 Thread Zlatko Đurić
On Thursday, February 2, 2017 at 8:54:40 AM UTC+1, Mark M wrote: > > I am an experience developer, but new to Angular. > > Is this a good place to ask for critique/code review on a new Angular > project? > There are a few people here who are usually constructive in their critique. I'm not

[AngularJS] Re: Calculate with "formatted" numbers ...

2016-09-01 Thread Zlatko Đurić
On Wednesday, August 31, 2016 at 1:57:21 PM UTC+2, Klaus Meier wrote: > > > Now with using number type, calculation is easy, but customer wants to > formatted numbers. What is the best way of dealing with this dilemma? > > TL;DR: Use CurrencyPipe to display values. Use Pipes in general to

[AngularJS] Re: Getting error using ng2 charts with Angular 2 RC 6.

2016-09-12 Thread Zlatko Đurić
Did you create this project with angular2-cli tool? Did you change the System.js config default stuff? Because the ` *const map: any = { **'ng2-charts': 'vendor/ng2-charts'** };` *part should, by default, be done in `src/app/system-config.ts`. You already have a System.config({ map,

[AngularJS] Re: Factory returns object literal with 'this' in it's functions

2016-09-13 Thread Zlatko Đurić
Enter code here... Everything is cool in this example (sorry for the bad pun). This is simply the JavaScript way of doing things. You have an object, that object has a property, which is a function, that function is bound to the object. All cool. What angular doesn't want you to refer to is

Re: [AngularJS] Re: error 404 bootstrap with angular 2 final release

2016-10-04 Thread Zlatko Đurić
e already tried: > > > > > > > nothing worked > > What worked was to put the css file in a subfolder within the app > directory. > > thanks for help > > Em terça-feira, 4 de outubro de 2016 04:14:29 UTC-3, Zlatko Đurić escreveu: >> >> Hi >> &

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

2016-10-04 Thread Zlatko Đurić
Hi, On Tuesday, October 4, 2016 at 12:12:13 AM UTC+2, Ed Thompson wrote: > > 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

[AngularJS] Re: Angular 2 guide: Class binding (Question)

2016-10-04 Thread Zlatko Đurić
I've read an article or a SO answer or similar recently, Angular binds to HTML *properties*, not *attributes*. That's because a html attribute (e.g. ** or *el.setAttribute('class', 'my-class');* )can only ever be a string. And a property of a HTML element (*el.className*) can be an object

[AngularJS] Import Vimeo.js on Angular 2 with TypeScript

2016-08-26 Thread Zlatko Đurić
The equivalent of that would be "import { Vimeo } from 'vimeo';". You might also need to tell your packager (Systemjs, we pack?) where it can find 'vimeo'. -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop

[AngularJS] Re: Unexpected behavior, Views are changing automatically.

2016-09-28 Thread Zlatko Đurić
What's in the EmailsView? An error there somewhere might cause the rollback. On Tuesday, September 27, 2016 at 11:50:47 AM UTC+2, tpessegueiro wrote: > > I have an issue that is happening in both IE and Firefox. On Chrome it is > working as expected. > > I have the following routing defined: > >

Re: [AngularJS] What do you call the collective name for the different javascript-file based entities?

2016-09-26 Thread Zlatko Đurić
On Monday, September 26, 2016 at 2:16:55 AM UTC+2, Richard Kandora wrote: > > I don't mean all of them together but all of them individually. Like, is > there a name that refers to the super group of them. > > Say for example I write 2 services, 1 provider and 2 directives. I could > say I

[AngularJS] Re: error 404 bootstrap with angular 2 final release

2016-10-04 Thread Zlatko Đurić
Hi On Friday, September 30, 2016 at 8:27:28 PM UTC+2, Guto Godoy wrote: > > > and in index.html I inserted the line: > > > Like Elias said, strip the whitespace. Additionally, you might want to prepend that path with */*, so it becomes */vendor/bootstrap/dist/css/bootstrap.min.css*. Finally,

[AngularJS] Re: Connecting Chart using Angular JS to DB

2016-10-04 Thread Zlatko Đurić
On Saturday, October 1, 2016 at 11:43:39 AM UTC+2, srinivas jayaram wrote: > > > I have a chart on my dashboard, I need to connect this chart to the DB > using Angular JS inorder to populate the results. Looking forward for a > solution. > Typically your Angular part of the application will

[AngularJS] Re: Exporting convention explicit vs implicit

2016-10-04 Thread Zlatko Đurić
Hi On Monday, October 3, 2016 at 10:21:40 AM UTC+2, Sander Elias wrote: > > If you export things explicitly, it's very hard to accidentally expose a > thing that should have been private. > I agree, at least in part, that explicit exports let you target specific stuff. But if the things should

[AngularJS] Angular 2 base ref issue

2016-11-05 Thread Zlatko Đurić
Yes, this is a simple, common issue. To load the app, you ask Apache the index.html page, which it serves you. While in the app, when you click "dashboard /tracker" link, angular intercepts it and simply displays you the new page. You never touch Apache. Now, when you refresh the page, you

[AngularJS] Re: Multi user data binding question

2017-01-06 Thread Zlatko Đurić
On Thursday, January 5, 2017 at 2:34:16 PM UTC+1, tim garver wrote: > > Gotcha, > i was really more concerned with the auto refresh of the remote data. Then > the client to client would be automatic > > That is easily achieveable. It's just not part of the Angular as a framework. See, if server

[AngularJS] Re: Angualr2 MyApp compoment with dynamic innerHtml/template from render engine

2016-12-30 Thread Zlatko Đurić
That sounds like angular app didn't start at all. You also need to bootstrap the angular MyApp module somewhere. Are you doing that? What does your index.html look like? -- You received this message because you are subscribed to the Google Groups "Angular" group. To unsubscribe from this

[AngularJS] Re: Angular JS server side data rendering on page load

2017-01-06 Thread Zlatko Đurić
If I understand correctly, you want to avoid the extra AJAX call/roundtrip, right? Two main options here: - no need to edit the data: render the list yourself in pure html, no need for ng-repeat. You can still add Angular components/binding or whatever tags, but you don't need ng-repeat

[AngularJS] Re: AngularsJS 1 and AJAX queries - Remove GET parameter in URL before calling a page (before launching the route)

2017-03-17 Thread Zlatko Đurić
On Thursday, March 16, 2017 at 8:08:06 AM UTC+1, amadese wrote: > > Hi, > > I have problem with my application in Coldfusion 11 (main page: > http://hostname/myapplication/). > I'm trying (with *angularJs 1*) to implement the routes. > > The page contents different links like: > >-

[AngularJS] Re: How to launch in production using angularjs seed - in particular using GAE

2017-03-17 Thread Zlatko Đurić
Well, in theory, you don't need to run your server to run stuff on app engine, but that depends on which angular seed project are you using. You should have something like "npm build --prod" or some such script, or if it's angular-cli, "ng build --prod". That would create an output, usually in

[AngularJS] Re: Best Practice for REST API calls that take an extraordinarily long time?

2017-04-19 Thread Zlatko Đurić
On Wednesday, April 19, 2017 at 3:25:03 AM UTC+2, rob...@leapyear.io wrote: > > Imagine you have an Angular 2 app that makes calls to a REST API with > Observables. Further imagine that the response time of these calls will > take many tens of minutes or even hours to return a response. > >

[AngularJS] Re: docker as a dev tool set?

2017-07-31 Thread Zlatko Đurić
I agree with Juri. Docker can be quite useful. But the question is, is it useful to *you*? What specific job you want it to do? Develop your angular apps, and only deploy them as docker images? Or maybe use docker images of your backend server for use in local development? Or use some

[AngularJS] Re: 80% of my coding is doing this (or why templates are dead)

2017-07-28 Thread Zlatko Đurić
The article is interesting, although with a bit different perspective than mine. Here's my take on the issue. I think the perspective I've mentioned is about the proper abstraction. And proper separation of concerns You say (or I think you do) that the goal of your JavaScript code is to

[AngularJS] storing a max value in a component

2017-08-04 Thread Zlatko Đurić
The simplest would be `max` operatorin an observable: https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/max.md -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and

[AngularJS] Wait for http.post to return Cookie.set

2017-07-11 Thread Zlatko Đurić
Well it's not"after the map" that's the problem here, it's"after the map has resolved". So in your use case when you need to call getRefresh, you would have to chain the two calls; first, call the refresh token endpoint, and when it comes back, than you can use your cookie. So your "resource"

[AngularJS] Re: Wait for http.post to return Cookie.set

2017-07-12 Thread Zlatko Đurić
On Wednesday, July 12, 2017 at 10:00:16 AM UTC+2, Tommaso Betti wrote: > > How can i return an Observable in the private method if i have to return > the Cookie if i don't need to refresh? > Isn't the same thing that i'm doing here? > > if (!Cookie.get("access_token")) { >

[AngularJS] Need local style sheets

2017-07-09 Thread Zlatko Đurić
I would try downloading the bootstrap libs locally: https://v4-alpha.getbootstrap.com/getting-started/download/ Or maybe via npm: npm install bootstrap@4.0.0-alpha.6 After that, you would need to change your build process, whether it's manual, ng-client, webpack or something else, to include

[AngularJS] How Do I disable a clicked button in AngularJS?

2017-07-10 Thread Zlatko Đurić
Maybe have is Disabled being a map instead? E.g.directive would be: ng-disabled="isDisabled[$index]" And than your controller sets that: addToCart(index, ...rest) { ... this.isDisabled[index] = true; ... } (Or whatever the method names, typing on a phone here). --

[AngularJS] Re: dynamic layout of controls

2017-07-14 Thread Zlatko Đurić
There are multiple ways to do this. One is: wait until you load the config file and then *redirect to *a url that will render the appropriate components. You might use router, or even multiple router outlets for all that. E.g. let's say your base route is something like /treeview. So you read

[AngularJS] Re: How to implement ACL / role based authorization with angular 2?

2017-07-19 Thread Zlatko Đurić
On Monday, November 28, 2016 at 4:51:35 AM UTC+1, Sander Elias wrote: > > > I also add something like this to the css of the project, to prevent items > from briefly flashing into view: > [has-access] { >display:none !importand > } > > > Well this is a cool trick that I haven't thought of

[AngularJS] Re: Is it safe to import custom .js files, and Jquery library ?

2017-07-19 Thread Zlatko Đurić
On Wednesday, July 19, 2017 at 4:03:20 AM UTC+2, kapil Budhiraja wrote: > > > I'm writing an web application using Angular 4, and would like to know if > it's safe to load a JavaScript file to connect to socketIO for emitting and > listening on responses ? > Also, I want to use jQuery for

Re: [AngularJS] Re: running angular multiple apps from one folder

2017-07-25 Thread Zlatko Đurić
with node.js > I would also like to use same node_modules for these I do not want > node_modules sprawl. Is that possible to have shared modules folder for > both to use? > > Thanks > > On Wednesday, June 21, 2017 at 1:16:28 AM UTC-7, Zlatko Đurić wrote: > >> Hi

[AngularJS] Re: periodic refresh using xml http get request

2017-07-27 Thread Zlatko Đurić
On Wednesday, July 26, 2017 at 2:20:21 PM UTC+2, Stéphane Ancelot wrote: > > I have a view that will need to refresh some data on display every 300ms. > > I will get these data with an xml http get request. > > what sounds to be the best method to do the refresh loop (getting data and > refresh

[AngularJS] Angular 2 - Get viewContainerRef of a different Component

2017-07-27 Thread Zlatko Đurić
Can't you pass it around like anything else in Angular, via a service? A simple Subject could probably pass this around. In any case it sounds fishy to pass those around. I assume that there might be a case but I can't think of one right now. What is it that you're trying to achieve? Hook to

[AngularJS] Re: what is the preferred pattern for creating a repeater (repeating divs) in ng2?

2017-07-28 Thread Zlatko Đurić
Well, *ngFor *is* the repeater for Angular, if you want to use it. I'm not sure if you just got the syntax wrong or you're asking for something more complex. In case it's just about syntax, you have to do something like this: {{ user.name }} Maybe you also want to show the numbers,

[AngularJS] Re: angular2 and lite-server

2017-07-02 Thread Zlatko Đurić
I would still avoid it. For one, now you have a firewall in front of your XP box, but it still has potential built-in vulnerabilities and it's still a bottleneck, potentially slowing down the whole service you're providing. And the second thing, you gain nothing by it. What's the problem you're

[AngularJS] Re: How to Select First row index of P-dataTable in Angular ?

2017-07-01 Thread Zlatko Đurić
On Thursday, June 29, 2017 at 11:22:24 AM UTC+2, har...@rapidd.net wrote: > > > I am showing some data in P-dataTable but i want to put input text field > on click on first row of table only (I am getting inout box but get > repeated through out of thee table). > This should be really easy to

[AngularJS] Re: running angular multiple apps from one folder

2017-06-21 Thread Zlatko Đurić
Hi Tito, Congratulations on your first production deployment! :) There are multiple ways to run multiple "apps" from one Node (express) app. You're saying Angular apps, but it seems like Node.js is involved too, so I'll try to address some cases. If you have one very specific TL;DR: - if

[AngularJS] Re: Angular with Typescript - why to instantiate object I get from server - performance dilemma

2017-06-07 Thread Zlatko Đurić
Sander, can you please enlighten me? I was under the impression that "casting" backend responses is just for static checks - when you compile Angular to JavaScript (to deploy to prod, or even run in browser), that no checks are actually enforced? E.g. take something like this: class Post {

[AngularJS] Re: Add http header to loadChildren http request

2017-09-21 Thread Zlatko Đurić
Hi Brian, I think overriding Http or HttpClient won't help with this - Angular uses ResourceLoader to load templates etc. You would need to override that and provide your own implementation. Check this ticket as a starting point: https://github.com/angular/angular/issues/13286 Zlatko -- You

[AngularJS] Re: Angular 4 material select option filter null and space

2017-09-17 Thread Zlatko Đurić
Simply filter this in your component. When you fetch that data, do something like this: this.places = data.places.filter(p => p.place); That should do it. -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe

[AngularJS] Re: bypassSecurityTrustHtml stripts angular form tags

2017-10-02 Thread Zlatko Đurić
Well, you didn't add formsModule to your *dynamic* module :) Try this: https://plnkr.co/edit/vEEQECofC7qfvCYCJ4bg?p=preview -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop

[AngularJS] Re: bypassSecurityTrustHtml stripts angular form tags

2017-10-06 Thread Zlatko Đurić
On Thursday, October 5, 2017 at 9:59:47 PM UTC+2, Turkel wrote: > > Great it works perfectly now. After hours of tries I was able to combine >> code Router, Http and HTML Converter within one component. >> > You are great developer, i`d love to be your student :) > > Thanks, I appreciate a good

[AngularJS] Re: AngularJS: socket.io or anything you recommend

2017-10-17 Thread Zlatko Đurić
On Monday, October 16, 2017 at 10:00:46 PM UTC+2, Tito wrote: > > Greetings, > > I would like to start using socket.io so that I can display changes on > back end to client's UI so that user does not need to refresh screen. > Any good reads out there you recommend? and/or do you recommend

[AngularJS] Re: Interfacing old system with new Angular 4 frontend

2017-10-14 Thread Zlatko Đurić
Robert, I think it's a simple scope issue. Your iframeClickHandler is attached to a click freely, which means it's scope is the iframe, not your component. Hence this.router is undefined. You need to bind that function to your component, like this: if (typeof doc.addEventListener !==

[AngularJS] Re: Interfacing old system with new Angular 4 frontend

2017-10-14 Thread Zlatko Đurić
Well, that click to post went out too fast :) I've meant to say, look at this plunk to see what I'm talking about: https://plnkr.co/edit/ifgGessycEUdy7lL0Y57?p=preview On Saturday, October 14, 2017 at 10:05:59 AM UTC+2, Zlatko Đurić wrote: > > Robert, I think it's a simple scope issue

[AngularJS] Re: How to use angular2 http API for tracking downloading progress status

2017-10-14 Thread Zlatko Đurić
On Friday, October 13, 2017 at 1:57:21 PM UTC+2, Vinu Prasad wrote: > > Hii..everyone angular2 . There are many fetching process takes place in my > project from server-side. I want to display the data fetching status at > client side . Plase help me how can I make it possible. > I'm not

Re: [AngularJS] Re: bypassSecurityTrustHtml stripts angular form tags

2017-10-01 Thread Zlatko Đurić
Sorry, my mistake, typing that on a phone without checking. You don't need sanitizer here. Put the "actions" prop directly into the template. On Oct 1, 2017 9:01 PM, "Turkel" wrote: > The HTML which I m fetching is : >> > > {"actions":"Password<\/label>\r\n\t\t\t

[AngularJS] bypassSecurityTrustHtml stripts angular form tags

2017-10-01 Thread Zlatko Đurić
The problem is that such form (or anything you passed in via sanitizer) is outside of angular scope. Simply said, angular doesn't know about your form. You could, after you pass the form in, try and attach your own listener to the form, but that's messy and probably buggy and has other problems

[AngularJS] Picture taken from Camera/Gallery not reloaded

2017-10-09 Thread Zlatko Đurić
I suspect you might need to sanitize the file url. Now I don't remember exactly for angular 1, but I think the service is called $sce, so look into that first. -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe

[AngularJS] Re: bypassSecurityTrustHtml stripts angular form tags

2017-10-09 Thread Zlatko Đurić
Did you try injecting some common service into that dynamic module, and then communicate via that service? -- 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,

[AngularJS] Re: Deploying Angular to AWS - S3 or Elastic Beanstalk?

2017-10-19 Thread Zlatko Đurić
Hi William, On Tuesday, October 17, 2017 at 8:32:53 AM UTC+2, William Saxton wrote: > > I'd like to use AWS to host my Angular web app, as well as use all of the > Amazon cloud services as necessary (DynamoDB, ElasticCache, etc). I > planned on using Elastic Beanstalk because I have experience

[AngularJS] Re: Configuration driven Components

2017-10-19 Thread Zlatko Đurić
Hi Gaurav, Let me also take a shot at this. If I understand this properly, you want to have a Core module which provides NavBar as a navbar component, which can go horizontally or vertically. Additionally, the items in navbar are implemented as NavBarItem components. Perhaps you also have a

[AngularJS] Re: Änderungen im Code werden durch ng serve nicht publiziert

2017-10-19 Thread Zlatko Đurić
On Wednesday, October 18, 2017 at 2:41:49 PM UTC+2, andre@netzwerkcenter.ch wrote: > > Hallo zusammen > > Ich habe immer wider die Situation, dass neue Methoden nicht automatisch > bei gestartetem ng serve verfügbar sind. > Erst nach dem ich via Ctr. + C den Server gestoppt habe, und dann

[AngularJS] Re: template vs. reactive Angular forms

2017-11-10 Thread Zlatko Đurić
Hi Rich, In addition to what Sander has said, I'll add one more vote for template-driven forms. I often have to style the forms specifically, and reasoning about that is, to me, much easier when I can see what I'm styling - but that heavily depends on what kind of an app you're working on. I

[AngularJS] Re: Cannot Read Property 'Navigatee' of undefined

2017-11-30 Thread Zlatko Đurić
On Wednesday, November 29, 2017 at 7:44:16 AM UTC+1, ayushsing...@gmail.com wrote: > > > Query on ngSubmit see screenshot attached > Screenshot of the app doesn't help, can you share code? And preferably as a plunkr or stackblitz or similar? -- You received this message because you are

[AngularJS] Re: n00b question: concatenating string using 2 way binding

2017-11-07 Thread Zlatko Đurić
Hey Arnaud, On 07.11.2017 09:15, Arnaud Deman wrote: In the associated component you just need something like : @Input() tikersymbol: string; As you use two way binding the value will be updated when the user enter a value. Here is the angular doc :

[AngularJS] Re: n00b question: concatenating string using 2 way binding

2017-11-07 Thread Zlatko Đurić
If it's a template-driven form, your component would have a property named that. E.g. export class MyComponent { tickersymbol:string; // later in the code... getQuote() { this.myService.getQuote(this.tickerSymbol).subscribe(); } } On Tuesday, November 7, 2017 at 2:13:10 AM

Re: [AngularJS] Re: n00b question: concatenating string using 2 way binding

2017-11-07 Thread Zlatko Đurić
Well, if it's aan array, you will have to do something like dara[0].companyName. What does your json look like? Also, use data?.companyName in the template, so that it doesn't break if your data is undefined, like when you're getting the quote. On Nov 8, 2017 1:35 AM, "Rich Leach"

Re: [AngularJS] Re: n00b question: concatenating string using 2 way binding

2017-11-08 Thread Zlatko Đurić
On Wednesday, November 8, 2017 at 2:07:43 AM UTC+1, Rich Leach wrote: > > LOL > > ... you would think this would be something easy > > {{data[0].companyName}} is not working, nothing gets returned (no errors > either). > > I've included the returned json below (copied directly from the

[AngularJS] Re: Search filter is too slow in angularjs with large dataset

2017-11-08 Thread Zlatko Đurić
Hi, On Wednesday, November 8, 2017 at 5:51:39 AM UTC+1, Suhas Pansare wrote: > > I have AngularJs client application which displays data in table using > dir-paginate directive of dirPagination.js > > current-page="vm.current_page"> > > Here is the search input > > > > > > I think something

[AngularJS] Re: breaking down monolithic index.js

2017-12-02 Thread Zlatko Đurić
Well the recommended pattern is to break down code by components. So try to make at least as many folders as you have specific pages and put code for each individual page into it's individual folder. And when you see some code that you're repeating (it's common to all, e.g. some specific

[AngularJS] Re: AngularJS+Typescript unit testing - Why karma

2017-12-05 Thread Zlatko Đurić
Hi Brian, I definitelly think you could do that. Just as you run "karma start", you could also run "mocha". The problem karma is solving is not simply how to run tests though. It's also how to setup the whole environment. Sure, you can mock an HTML element, run a spy on that element. Then you

[AngularJS] Re: Dynamic HTML passed to Angular

2017-10-25 Thread Zlatko Đurić
On Tuesday, October 24, 2017 at 8:40:43 AM UTC+2, forexleads wrote: > > I am a content management architect looking for some guidance from the > Angular experts. Following is my thought process for a project. Please let > me if this is doable and recommended. > "For some pages, to deliver

[AngularJS] Re: Values returned by service display fine in console, cause error on screen

2017-10-25 Thread Zlatko Đurić
Well, two things. For one, the way you define your property, *stock*, it's undefined when the thing is initialized. So, before the *dataService* gets the data back, it's undefined in the template, so yuou have *undefined.symbol* - so that's what fails. You can any of these: [...snip...]

[AngularJS] Re: Redirect with API response

2017-10-25 Thread Zlatko Đurić
Well, localStorage is also not going to persist accross subdomains. Basically it's a cross-domain problem. But you say you'll have to reload onmce again once you have the token in local storage? I don't think that's the case, you can simply inject Router into your AuthComponent (whichever

[AngularJS] Re: Dif btw angular 2 and 4??

2017-10-25 Thread Zlatko Đurić
On Tuesday, October 24, 2017 at 8:40:43 AM UTC+2, Felix Christo wrote: > > Currently I am working on Angular 2. Whats s the diff btw angular 2 and 4? > Better HttpClient (with proper interceptors), better animations, and depending on which 2, much better router. Which 2 do you have? FWIW

[AngularJS] Re: Redirect with API response

2017-10-25 Thread Zlatko Đurić
So I assume that e.g. I login to login.app.com as *zla...@mydomain.com*, then your login API returns something like: *{ accessToken: ..., domain: mydomain }*, and then login form redirects me to mydomain.app.com. Yes, in that case, you'd likely lose all that extra info. Now, first the simpler

[AngularJS] Re: Configuration driven Components

2017-10-20 Thread Zlatko Đurić
On Friday, October 20, 2017 at 6:06:31 PM UTC+2, Gaurav Verma wrote: > > Thank you Zlatko for your response. You said @Input() layout = > 'horizontal' will allow me to configure the NavBar layout but how can I > dynamically set the layout? > This particular problem is sSimple to solve:

[AngularJS] Why moving from one version of Angular to another is so painful ? Is Angular a right choice for the client side development ?

2018-05-15 Thread Zlatko Đurić
In addition to the other two answers, I will add another line of thought, perhaps a little controversial. The answer to your question might be " yes", you have made a mistake by choosing Angular. We're all focused on different fields and front-end development might not be your strong side.

  1   2   >