[AngularJS] Angular AWS EC2 IP address service discovery

2017-04-25 Thread Michael Bennett
Hi everyone,

My first post here, so if I'm doing anything wrong apologies in advance.

I've been working on an Angular project and have a docker image containing 
it and its API (django) all one container.

This all works well when I'm running locally. The angular code builds via 
webpack and looks at the local IP for the API.

e.g.

localhost:8000

but when I deploy to EC2 I get a magically auto assigned IP and need my 
angular app on boot up to use it.

How do people do this normally? Service or API endpoint discovery seems 
like a core thing in a deployment like this but I think I'm going to have 
to do write a file into my angular 2 dist folder for NGINX to use by doing 
something with the AWS EC2 endpoint documented here: 
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html#working-with-ip-addresses
 


I would do a CURL or something similar on this URL and put it into a file 
and then create some kind of service on my app to use this file or a 
sensible default for my endpoint.

Is this a good way to do it or do people have a better way?

Thanks in advance

MB

-- 
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 to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Progressive page loading

2017-04-25 Thread Jose Sosa
Hi Georgios, 

I have had a similar issues with an AEM content in an Angular rendered 
component on a page and we needed to wait for the user to scroll down to 
get an image impression for analytics and tracking. We used a component 
directive approach to wrap the AEM content component around a show/hidden 
Boolean value on element. Then placed a watch on the element value if 
viewed trigger the impression. 

This is just one approach, you could also use a simple event listener at 
the end of the application load and do not trigger a callback until the 
application is fully loaded after the last component such as the footer 
loads then trigger a callback to the event listener and remove your 
indicator then.

Many ways to do this.

Thanks,

Jose  

-- 
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 to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Fwd: Us congress hearing of maan alsaan Money laundry قضية الكونغجرس لغسيل الأموال للمليادير معن الصانع

2017-04-25 Thread Shamy A
*موقع اليوتيوب الذي عرض فيديوهات جلسة استماع الكونجرس الأمريكي *

* لمتابعة نشاطات غسل الأموال ونشاطات*



*السعودي معن عبدالواحد الصانع*

*مالك مستشفى  وشركة سعد  ومدارس سعد بالمنطقة الشرقية** بالسعودية * * ورئيس
مجلس ادارة بنك اوال البحريني*



 *وتعليق محطة سي ان بي سي التلفزيونية*



*مترجم باللغة العربية*



US Congressional Hearing of

 Saudi billionaire" maan  Al Sanea "

 and Money Laundering

with bank of America



With Arabic Subtitles





http://www.youtube.com/watch?v=mIBNnQvhU8s































































-- 
You received this message because you are subscribed to the Google Groups
"economy world" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to economy-world+unsubscr...@googlegroups.com.
To post to this group, send email to economy-wo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/economy-world/CAFVGM0eewyhu%3DLa3WUMLox%3Do2gw8EJGRqRLzS
nXDqe_UQpD3Xg%40mail.gmail.com

.
For more options, visit https://groups.google.com/d/optout.

-- 
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 to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: AngularJS directive factory?

2017-04-25 Thread RI Khan Shamim
I tried in my way, but couldn't solve. Any sample? 

On Tuesday, April 25, 2017 at 3:01:04 PM UTC+6, Sander Elias wrote:
>
> Hi ..,
>
> Yes, that is possible. I did that a couple of times. Generated directives 
> from an array. Good for stuff like icon buttons where the only real 
> difference is the icon that's used and stuff like that.
>
> Regards
> Sander
>

-- 
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 to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Problem with Angular translation and nya-bs-select

2017-04-25 Thread Florian Scheffer
Hello dudes,

I'm new to Angular and normally a php developer. So dont hate me :).

I've a problem.

   - Created a Language dropdown switcher with nya-bs-select and tried to 
   translate the text of that Dropdown. But it fails :/

Thats my template (index.php)




 {{ 
'load.partial.root.german' | translate }}




 {{ 
'load.partial.root.english' | translate }}





I'm loading the translations over partials


$translateProvider.useLoader('$translatePartialLoader', {
urlTemplate: 'l10n/partial/{lang}.json'
});

// Tell the module what language to use by default
$translateProvider.preferredLanguage('de_DE');
// Tell the module to store the language in the cookies
$translateProvider.useCookieStorage();
$translatePartialLoaderProvider.addPart('root');
// Enable escaping of HTML
$translateProvider.useSanitizeValueStrategy('escape');


And my controller tells

$scope.selectedlanguage = $translate.proposedLanguage();

$scope.setLang = function(langKey) {
$translate.use(langKey);
};


And now you see my Problem:



Any idea?


Thank you


-- 
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 to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Angular good for admin interface?

2017-04-25 Thread Florian Scheffer
Is Angular good for a admin/user interace?

-- 
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 to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Is it possible to create a web using AngularJS and at the same time can pass the tests of compatibility WAI and accessibility AAt

2017-04-25 Thread Sander Elias
Hi Rodriguez?,

Angular template syntax is 100% valid HTML, you don't need the data-ng 
stuff, that just adds unneeded clutter to your templates. You can use all 
normal aria stuff, and if your stuff needs to be highly dynamic, you might 
even use ngAria to support even the edgiest cases. 
It is neither easier nor harder to build a full WAI-AA compliant app with 
Angular. I'm not gonna lie to you, it will take extra effort, but angular 
will not be blocking. In most cases it will make it easier even.

Regards
Sander

-- 
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 to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: AngularJS directive factory?

2017-04-25 Thread Sander Elias
Hi ..,

Yes, that is possible. I did that a couple of times. Generated directives 
from an array. Good for stuff like icon buttons where the only real 
difference is the icon that's used and stuff like that.

Regards
Sander

-- 
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 to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] AngularJS directive factory?

2017-04-25 Thread RI Khan Shamim
Is is possible to create AngularJS create directive factory like service 
factory?

-- 
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 to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Is it possible to create a web using AngularJS and at the same time can pass the tests of compatibility WAI and accessibility AAt

2017-04-25 Thread rrodriguez
AngularJS uses Javascript, uses tag modifiers with specific names and content 
created at runtime.


Even so, AngularJS is equipped with tools to solve these problems:

- Javascript is not prohibited on Web WAI (If used in right way)

- Modifiers can start with data-ng-keyword

- It makes use of the module NG-ARIA attributes that convey state or semantic 
information about the application for users of assistive technologies, such as 
screen readers.


Does anyone know if there is any point that I have not considered and where 
AngularJS could present an insurmountable problem if I want my development to 
be signed as WAI-AA and accessible?



At least I would be very happy of knowing if there are some document that 
guides me in the best practices to make compatible AngularJS with the 
requirements that W3C asks us to mark the Web as accessible type WAI-AA


Some good document where I can learn the points that I must take care of during 
the development of my Web AngularJS so that it ends up being accessible type 
WAI-AA.

Thanks in advance.  

-- 
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 to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] AngularJS + W3C + WAI- AA accesibility level Is it possible to create a web using AngularJS and at the same time can pass the tests of compatibility WAI and accessibility AA level

2017-04-25 Thread rrodriguez


AngularJS uses Javascript, uses tag modifiers with specific names and 
content created at runtime.

Even so, AngularJS is equipped with tools to solve these problems:

   - 
   
   Javascript is not prohibited on Web WAI (If used in right way)
   - 
   
   Modifiers can start with data-ng-keyword
   - 
   
   It makes use of the module NG-ARIA attributes that convey state or 
   semantic information about the application for users of assistive 
   technologies, such as screen readers.
   
Does anyone know if there is any point that I have not considered and where 
AngularJS could present an insurmountable problem if I want my development 
to be signed as WAI-AA and accessible?

At least I would be very happy of knowing if there are some document that 
guides me in the best practices to make compatible AngularJS with the 
requirements that W3C asks us to mark the Web as accessible type WAI-AA

Some good document where I can learn the points that I must take care of 
during the development of my Web AngularJS so that it ends up being 
accessible type WAI-AA.


Only wanted to know experiences from other users who tried to validate as 
accesible Webs created with angularjs and if finally was very hard to make 
compatible.

Thanks in advance.

-- 
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 to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.