[AngularJS] Re: MultiSelect in AngularJS 2

2017-04-26 Thread Sander Elias
Hi Siddharth,

Is there a reason you can not do:
BodyColor.Default = typeof BodyColor.Default === "object" ? BodyColor.
Default : [BodyColor.Default]
in your controller?

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-26 Thread Sander Elias
Hi Phantom,

There are some way's. But I rather won't use those. Also, WASM is 
happening, things compiled to that are way harder to read. 
Also, while wrting in TS, and compiling down using tools that minify and 
tree-shake, the result isn't that readable anymore anyhow!

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] MultiSelect in AngularJS 2

2017-04-26 Thread siddharth pandey
Hello,

I have the below select box..BodyColor.Default is a property of a JSON 
object and is initially a string.



{{z.OptionID}}




The issue is that I am getting a Javascript error TypeError: values.map is not 
a function which I am guessing is because it expects BodyColor.Default to be an 
array. 

When I save the form it is automatically converting the BodyColor.Default to an 
array and saving the value but the page is stuck then.


Can someone please tell me how to either convert BodyColor.Default to an array 
inside this HTML or make it work with a string so it does not throw the 
TypeError.


Thanks

-- 
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-26 Thread Phantom
I know dude but if you have to make available in public, what would you do?

26 Nisan 2017 Çarşamba 13:28:00 UTC+3 tarihinde Sander Elias yazdı:
>
> Easy, make it unavailable to the internet. Not all apps are exposed to the 
> public internet.
>

-- 
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] how to get data of php Web api json from server to using angularJs.?

2017-04-26 Thread Ujagar Singh Meena

http://stackoverflow.com/questions/43511846/how-to-get-data-of-php-web-api-json-from-server-to-using-angularjs

anyone solve this problem

-- 
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: Angular AWS EC2 IP address service discovery

2017-04-26 Thread Sander Elias
Hi Michael,

You confuse me... How are you going to open your angular app? You can't 
boot an app, unless you have an ip or DNS-name tied to it. You hardly can 
ask an app it's ip, before it's started, right? Or am I missing something?

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: 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-26 Thread Sander Elias
Hi Rodriguez,

If that would help you, here 
is the 
relevant spec.

quote:

> Attributes have a name and a value. Attribute names must consist of one or 
> more characters other than the space characters 
> , 
> U+ NULL, U+0022 QUOTATION MARK ("), U+0027 APOSTROPHE ('), U+003E 
> GREATER-THAN SIGN (>), U+002F SOLIDUS (/), and U+003D EQUALS SIGN (=) 
> characters, the control characters 
> , 
> and any characters that are not defined by Unicode. In the HTML syntax, 
> attribute names, even those for foreign elements 
> , may be 
> written with any mix of lower- and uppercase letters that are an ASCII 
> case-insensitive 
>  
> match for the attribute’s name.
> Attribute values are a mixture of text 
>  and character references 
> , except 
> with the additional restriction that the text cannot contain an ambiguous 
> ampersand .


The link shows you the complete story, but the paragraph above highlights 
that an attribute can be a mixture of all possible characters except:  " ' 
> / = and the null chr.  This means that all brackets: []{}() are allowed 
in an attribute name, Also * is valid. Some people seem to think otherwise, 
and not all validators seem to be aware of this, but the spec is quite 
clear!
That is a pretty resounding YES isn't it ;)

Applying to all rules of WAI-AA is some work, but if you take it into 
account from the get-go, it's not that hard. What might help you, is use 
the aria roles, to aid your styling:
as an example:

{{alertText}}

then in the css:

[aria-role="alert"] {
  background-color: #dff0d8;
  border-color: #d0e9c6;
  color: #3c763d;
  padding: .75rem 1.25rem; 
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: .25rem;
}


This will make your life a lot easier!
If needed, you can even make a directive to add extra needed functionality 
based on the aria selector, and keep your html 'clean'  (in my sample, you 
can add for example a dismiss button to the alert, completely transparent)

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-26 Thread Sander Elias
Easy, make it unavailable to the internet. Not all apps are exposed to the 
public internet.

-- 
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: Problem with Angular translation and nya-bs-select

2017-04-26 Thread Sander Elias
Hi Florian,

Pull the texts into your controller, and iterate over an array of the 
options. That way the ui will only be filled after the translations are 
done.

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: Angular AWS EC2 IP address service discovery

2017-04-26 Thread Michael Bennett
Thanks sander, would you have an example of how to do this?

I'm not sure how I could get my config inside angular to use AWS DNS. The 
API endpoint is on the same host and the host name is dynamic and they are 
pretty much a standalone microapp/service so they only talk to themselves, 
people test on them they get disposed. I don't need to save or get state 
from a third party service. So I don't think AWS DNS would be suitable 
here. Maybe I'm wrong? 

I realise I can have a multi container service in place as another option 
but I still would need to configure the Angular service to use the endpoint 
URL somehow from the containers starting up. Plus thats overkill and costs 
more money on AWS. 8-)



Thanks

MB

On Wednesday, 26 April 2017 16:43:23 UTC+10, Sander Elias wrote:
>
> Hi Michael,
>
> Usually, this is something you arrange inside your webserver, in this 
> case, it's Nginx I believe. And you use the AWS DNS to hook it up to a 
> domain name. Then in your app, you can simply inspect the headers if you 
> need it for some reason in your app itself.
>
> 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: 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-26 Thread rrodriguez
Thanks for your Help.

We have been using angularJS a lot in our works. 
But in this new project We are especially obliged by our clients to comply with 
the accessibility standards in order to apply the WAI-AA logo.


In this case we do not have experience and we could not give confirmation to 
our clients.

Searching the Web we did not find a resounding YES and we began to doubt

Thanks again. 

-- 
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-26 Thread Phantom
How to close code on the live website?

-- 
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: Http request problem in ie9

2017-04-26 Thread Sander Elias
Hi,

Probably yes. but it's hard to tell without any detail on what you are 
doing, and the exact error message you are getting. Access denied is 
usually something that's triggered by the server. I would inspect the 
header's  (server-side) to figure out what's different.

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: Angular / Angularfire2 How to get result as typed object ?

2017-04-26 Thread Sander Elias
Hi Fairydwen,

I believe AF2 hands you an observable, so you can use the map operator to 
do the mapping, before you subscribe to it.

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: Angular AWS EC2 IP address service discovery

2017-04-26 Thread Sander Elias
Hi Michael,

Usually, this is something you arrange inside your webserver, in this case, 
it's Nginx I believe. And you use the AWS DNS to hook it up to a domain 
name. Then in your app, you can simply inspect the headers if you need it 
for some reason in your app itself.

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] Http request problem in ie9

2017-04-26 Thread 신현승
Hi ~

in angular4 version http request is denied access from ie9. I can not get 
data from api.

Is there a way?

thx

-- 
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 / Angularfire2 How to get result as typed object ?

2017-04-26 Thread Fairydhwen

Hey guys,

i'm using Angularfire2 to get data from firebase.but i cant find a way to 
map results directly to an array of  on my subscribe =>.

Do you have any exemple using class object to map the result ?

At the moment i can recreate new Message() that i push on my Message[] with 
a data.ForEach... but it looks like to be an old school way :/

Regards,

Fairy

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