[AngularJS] Putting text in frames and objects in Angular

2016-11-27 Thread marian . musialek92
There is an opportunity to set on similar object separation (it is about setting text inside a frame and implement it as a single object) like these ones that were used on this page: https://zoptamo.com/uk/s-mma-c-uk but in Angular? This knowledge is needed for similar project of catalog site (

[AngularJS] Re: post data in angular2

2016-11-27 Thread Sander Elias
Hi Rekha, Do you still have this issue? Thing is, your submit function is neglecting the async nature of the http call. Submit() { // first problem: let templateId; this.route.params.subscribe( (param: any) => { templateId = +param['templateid']; }); // the above code runs as

[AngularJS] Re: Ang2 dependency injection of dynamically created services

2016-11-27 Thread Sander Elias
Hi Graham, You can use the lazy-loading feature to load dynamically load needed components/services. In some cases, you might even dynamically build those component/services on your server, by letting your server utilise the aot compiler. This is a fairly complex setup, but you can keep the com

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

2016-11-27 Thread Sander Elias
Hi Felix, When it comes to ACL and auth, this is usually very tightly bound to the project you need it in. I yet have to discover a generic solution for this. (a workable one that is.) I usually build a couple of services that use bitmasks to determine when a user holds the right access permis

[AngularJS] Re: problem with async requests

2016-11-27 Thread Sander Elias
Hi skillnte, You seem to forgot to return the promise from your get function. app.service('cityService', ['$http', function ($http) { this.cities = ''; this.get = function () { return $http({ // <=== Notice the RETURN here! method: 'get', url: API_SERVER +

[AngularJS] Re: ng-src

2016-11-27 Thread Sander Elias
Hi Kempiloko, You fiddle seems incomplete, and does nothing. It's hard to help you this way ;) Regards Sander -- 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 angul

[AngularJS] Re: Help

2016-11-27 Thread Sander Elias
Sure, This is supported in angular ;) -- 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 angu

[AngularJS] Re: AngularJS routing problem

2016-11-27 Thread Sander Elias
Hi Džejlan, It's hard to help you without code, and some more info on how you are getting the route loaded in your browser. This use case is well-supported by the router! Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular" group. To unsubscri

[AngularJS] Re: Slow Performance in IE 11

2016-11-27 Thread Sander Elias
Hi Vishal, Even in IE11 a (few) hundred records should not really be a problem. Are you sure you only loaded the required shims, and nothing more? See: https://angular.io/docs/ts/latest/guide/browser-support.html -- You received this message because you are subscribed to the Google Groups "Ang

[AngularJS] Re: How do I use Kris Kowal's Q instead of jQuery's Deferred implementation?

2016-11-27 Thread Sander Elias
Hi Peter, Oh, your code does work for me (after slight modification) http://plnkr.co/edit/JoYFqxs8TZP1r6h4a0DL?p=preview So you can use that way to use $q. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular" group. To unsubscribe from this gro

[AngularJS] Re: data transfer

2016-11-27 Thread Sander Elias
Hi Vipul, I most cases you are better off by using a shared service, but it's kind of difficult to help you without seeing your code. If you want help, it's often helpful to recreate your problem in a plunkr Rega

[AngularJS] Re: Keeping the static files secure

2016-11-27 Thread Sander Elias
Hi Pāvils, I assume you mean a https-only cookie? That would do. I slightly prefer localstorage, and avoid cookies altogether. I agree on the 'closed' gate idea. You can set up your express server to demand the token for everything, with exception of the things you need to get for login. Best

[AngularJS] Slow Performance in IE 11

2016-11-27 Thread Vishal Kumar Nalla
Hello, We are experiencing slow performance of Angular JS modules in browser IE 11. When user types in a text box, there is a delay in the characters that are rendered and the combo boxes are loading extremelyslow with drop down values. We have module with a datatable of 100+ records, i am susp

[AngularJS] Re: Keeping the static files secure

2016-11-27 Thread Pāvils Jurjāns
Of course, I understand that hiding the interface/code is not a sure way to prevent attacks. But an unlocked but closed gate is slightly better than wide open gate, isn't it? I was thinking that the API could issue a secure token (saved in http-only in cookie) at successful authentication, and