[AngularJS] Re: Angular CLI and production build output filename issue

2017-01-13 Thread Sander Elias
Hi Thierry,

I can open an issue for this if you want?

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 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 CLI and production build output filename issue

2017-01-13 Thread Thierry Ciot
yes it helps to get confirmation that we haven't overlook a possible 
solution.  We will then have to do implement a post build step to rename 
these files to a predicable name.

On a side note, I would think it would be really straightforward for the 
CLI team to add a flag such that the name of the out put files are fixed.

Thanks for your time.

On Friday, January 13, 2017 at 12:46:59 PM UTC-5, Sander Elias wrote:
>
> Hi Thierry,
>
> You are not the only one ;)
> I'm not aware of an option on the prefixes, however, I seem to remember 
> talking with one of the cli-team members about this a while ago.
> IIRC the response was, that this usually gets done (automatically) by the 
> tools that take care of the deployment. A side note being that there are so 
> many different setups for production, that it is not possible to add 
> support for that.
>
> Hope this help's you a bit.
> 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 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 track down an uncaught error in rxjs / zone.js?

2017-01-13 Thread Partap Davis
I'm getting an uncaught TypeError that is triggered in 
SafeSubscriber.prototype._tryOrUnsub() 
...looks like that is defined in rxjs/Subscriber ...

Problem is that the stack gives me no idea what code is triggering the 
exception:

SafeSubscriber.__tryOrUnsubbuild.js:4646
SafeSubscriber.nextbuild.js:4591
Subscriber._next   build.js:4544
Subscriber.nextbuild.js:4508
Subject.next   build.js:4980
EventEmitter.emit  build.js:5165
NgZone.triggerErrorbuild.js:5533
inner.inner.fork.onHandleError build.js:5494
ZoneDelegate.handleError   zone.js:246
Zone.runTask   zone.js:154
ZoneTask.invokezone.js:345

None of the functions in the call stack are from my code...I don't know how 
zone.js works...
iirc, it is responsible for triggering async actions...so probably 
something in a template?

The problem is compounded by the fact that this error only happens when I 
run my app in a browser on an embedded system, so my debugging tools are 
limited.
I can connect with chrome devtools, but it takes ages to respond to any 
input, if it ever actually does...half the time it just disconnects without 
showing me anything.

Is there something I can look for in the scopes on the call stack that will 
give me a hint as to what is triggering the exception?

Thanks
-partap

-- 
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 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 CLI and production build output filename issue

2017-01-13 Thread Sander Elias
Hi Thierry,

You are not the only one ;)
I'm not aware of an option on the prefixes, however, I seem to remember 
talking with one of the cli-team members about this a while ago.
IIRC the response was, that this usually gets done (automatically) by the 
tools that take care of the deployment. A side note being that there are so 
many different setups for production, that it is not possible to add 
support for that.

Hope this help's you a bit.
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 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 CLI and production build output filename issue

2017-01-13 Thread Thierry Ciot

Hi,

Am I the only one running into this or is the CLI tool not that used yet?

Thanks.

On Tuesday, January 10, 2017 at 4:51:08 PM UTC-5, Thierry Ciot wrote:
>
> We are starting to use the CLI tool and have only one last problem to get 
> going.  
> We need to include the build artifacts from a JSP page but the tool 
> produces file names with a variable postfix (for example, postfix 
> c0125ba6898c5b393214 in main.c0125ba6898c5b393214.bundle.js).
>
> Is there a way to either:
>
>1. Have the tool not generate filename without postfix?
>2. Have a way to specify the postfix value at build time?
>
> Thanks in advance, Thierry.
>
>

-- 
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 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: how to actually Build an Angular2 App

2017-01-13 Thread Thierry Ciot
You can use Angular CLI tool to create bundles and then include these 
bundles from your page.  See CLI command ng build -prod.

Thierry

On Thursday, January 12, 2017 at 2:53:33 PM UTC-5, Patrick Caillouet wrote:
>
> I'm a noob to Angular2, Node, NPM, Git but not Html/css/JS.
>
> I was able to setup Node, NPM and use git to clone the quickstart project 
> for Angular2... then go through the process of the "Hero Editor" tutorial. 
> One HUGE thing I think that was left out of the tutorial is... how to 
> actually USE what your built... Like, put it online, these seems to me like 
> something people would probably want to know, because if not... whats the 
> purpose?
>
> If I take all the files for the project and put it on the web... (yes the 
> what seems like hundreds and hundreds of files for this simple app) it 
> doesn't work ( like i know it shouldn't). I KNOW angular2 is suppose to 
> compile somehow and combine all the .ts .map. js files into a bundle 
> somehow.
>
> So my question is... How do I actually build my "Hero Editor" demo app? 
> How do I combine all the files and compile it into the bundle files?
>

-- 
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 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: Just getting started... trying to do step 2 of the Hero editor and I'm stuck

2017-01-13 Thread Patrick Caillouet
WOW O WOW thank you clarifying... This makes MUCH more sense than swimming 
in the dark lost. They really need to copy-paste what you wrote as an 
excerpt at the end of the tutorial, because I bet more people like me are 
set on a bad path. 

On Friday, January 13, 2017 at 2:53:30 AM UTC-5, Sander Elias wrote:
>
> Hi Patrick,
>
> Those are a bit different. Quickstart has been build around systemJS, wich 
> basically a tool that makes the browser know what to do with modules (load 
> them when asked for.) This sounds nice, but you end up with 2500+ modules 
> to load, and this slows down tremendously. Even on http2. (ok,ok, not 
> really black-white, and I'm simplifying and cutting corners here!)
> This is not a problem if you want to do a small prototype, and it's a very 
> flexible way of building. However, turns out, that for production you need 
> overly complex configuration/tooling.
>
> On the other side is Angular-CLI. This is a build tool and generator in 
> one. It takes care of all the nasty tooling stuff, and building for 
> production is as simple as adding a --prod to the command at hand. Also, it 
> helps you during the whole lifetime of the application. Adding a module, 
> components/whatever you need, CLI will help. Want to utilise AOT? again, 
> CLI will help, and so on. The list is getting longer with every release.
>
> Takeaway: use the CLI. And stay clear of other build tools as long as you 
> possibly can. For most projects, that will be the entire lifetime of those. 
>
> The TOH, was build before the CLI was in a usable state, and is a demo 
> project, it was never meant to be build for production. (euhm, last time I 
> looked TOH didn't use CLI, but that might have been changed!)
>
> 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 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: Requesting help in deploying Angular 2 app using cPanel

2017-01-13 Thread Zachary Morgan
I am interested. I was able to deploy the app without it being an angular 
CLI project, but now I am exploring angular CLI, and I was wondering if you 
figured something out.

On Wednesday, November 16, 2016 at 11:22:54 AM UTC-5, Zachary Morgan wrote:
>
> Hi,
>
> Were you able to get help with this?
>
> On Sunday, August 28, 2016 at 3:57:39 PM UTC-4, Manjur Ahmed wrote:
>>
>> Is anyone familiar with Angular 2 and cPanel that can help me go through 
>> the deployment process, either by direct message or via hangout? 
>>
>> I currently have a semi-complete static website that I would like to test 
>> deployment on. The project was generated using the Angular CLI.
>>
>> The problem is that there is no good documentation on how to deploy such 
>> an app to a hosting service of my choice. This is my first app deployment. 
>> Please email me at a.manju...@gmail.com or reply onto this thread if 
>> interested. 
>>
>> Thank you!
>>
>

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


Re: [AngularJS] Re: Construct a full URL for a route, with params, for use in launching a new browser tab

2017-01-13 Thread chandaniel112 via Angular


On Fri, 1/13/17, reginemcfarlane via Angular  wrote:

 Subject: Re: [AngularJS] Re: Construct a full URL for a route, with params, 
for use in launching a new browser tab
 To: angular@googlegroups.com
 Date: Friday, January 13, 2017, 2:38 PM
 
 
 
 On Fri, 1/13/17, jamesmatthews431 via Angular 
 wrote:
 
  Subject: Re: [AngularJS] Re: Construct a full URL for a
 route, with params, for use in launching a new browser tab
  To: angular@googlegroups.com
  Date: Friday, January 13, 2017, 2:11 AM
  
  
  
  On Fri, 1/13/17, floydjack428 via Angular 
  wrote:
  
   Subject: Re: [AngularJS] Re: Construct a full URL for
 a
  route, with params, for use in launching a new browser tab
   To: angular@googlegroups.com
   Date: Friday, January 13, 2017, 1:33 AM
   
   
   
   On Thu, 1/12/17, Brian Kotek 
   wrote:
   
    Subject: Re: [AngularJS] Re: Construct a full URL for
  a
   route, with params, for use in launching a new
 browser tab
    To: angular@googlegroups.com
    Date: Thursday, January 12, 2017, 4:01 PM
    
    Well, I was hoping for something
    that would automatically handle appending the route
  and
   URL
    params using the proper syntax for the current
  location
    strategy. 
    Like I said, I know I can do this
    myself, but before I took the time, I thought I'd see
  if
    there was something built-in that exposes this. I
  realize
    that it's probably not a very common need, but it
    seems like something that either Router or Location
    should be able to handle. After all, the framework
    has to be doing this internally somewhere
    already. 
    On Thu, Jan 12, 2017 at
    6:24 AM, Sander Elias 
    wrote:
    Hi Brian,
    why
    can't you just use some string manipulation?
  Using es6
    template strings that's probably easier to do as
  what
    you are trying to do now?
    RegardsSander
    
    
    
    
    
    -- 
    
    You received this message because you are subscribed
  to a
    topic in the Google Groups "Angular" group.
    
    To unsubscribe from this topic, visit https://groups.google.com/d/
    topic/angular/l1wkqvfmTgk/ unsubscribe.
    
    To unsubscribe from this group and all its topics,
  send an
    email to angular+unsubscribe@
    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.
    
    
    
    
    
    
    -- 
    
    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 angular@googlegroups.com.
    
    Visit this group at
   https://groups.google.com/group/angular.
    
    For more options, visit
   https://groups.google.com/d/optout.
    ara Romaneasca  sub presiunea Rusiei  Imperiul
   Otoman a intervenit i militare pentru a restabili
 regimul
   Regulamentului Organic. La 31 uhe n Corp
 expeditionar
  otoman
   conclus de Suieiman Pasa a trecut Dunarea giu. Dupa
   numeroase tratative  in ciuda protestului
 populatiei
   romanesti ui provizoriu a fost inlocuit de o
 Locotenenta
   domneascaformata din Ion 3 Radulescu  Christian Teii
 si
   Nicoiae Goiescu. Programul revolutionar a unele
 modificari
   si a fost supus aprobarii Portii. S-au reluat
 contactele
  oua
   conducere si consulii puterilor straine  iar o
   delegatie in frunte cu
   
   -- 
   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 angular@googlegroups.com.
   Visit this group at
   https://groups.google.com/group/angular.
   For more options, visit
   https://groups.google.com/d/optout.ceasta
  era mica proprietate bazata pe munca  adica
  intinderea de pamant cultivabil potrivita capacitatii de
  munca a plugarului si a familiei sale  lucrata de
  proprietar si familia sa  dar neexcluzand eventualele
  si sporadicile concursun'de brate ale semenilor... 
  
  -- 
  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 angular@googlegroups.com.
  Visit this group at
  https://groups.google.com/group/angular.
  For more options, visit
  

[AngularJS] Re: node_modules location in development stage

2017-01-13 Thread Sander Elias
Hi Peter,

The common approach is to have the node_modules folder in every project 
folder. Keep everything you need for 1 project next to each other. prevent 
versions from mixing in.
If you are pressed for disk-space (not common on dev machines) you can 
delete node_modules in the inactive projects. If you want to do that, you 
might want to switch to yarn for package management. 

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 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] node_modules location in development stage

2017-01-13 Thread Peter Remec


Recently I started with Angular 2 app development and I came across some 
problem. I have multiple projects that use certain node modules and I 
installed those modules with *npm install* in project folder. But then I 
started thinking: If I have a lot of projects and install node modules for 
each of those projects, it requires quite a lot of disk space and there are 
some node modules installed multiple times (in a multiple projects). So I 
tried to find a way to install node modules in some common folder in order 
to make that folder some kind of library that my projects use. But there's 
another problem that comes to my mind: What if different projects require 
different versions of the same module? How can I install multiple module 
versions in the same folder?


Maybe I'm thinking completely the wrong way, so I'm asking for your 
solutions of my problem. Is there any common way of handling node modules 
in development stage? Does each project have own node modules folder or is 
there some common folder to ? What's the most common approach (if there is 
one)?


Thanks!

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


Re: [AngularJS] Re: Construct a full URL for a route, with params, for use in launching a new browser tab

2017-01-13 Thread reginemcfarlane via Angular


On Fri, 1/13/17, jamesmatthews431 via Angular  wrote:

 Subject: Re: [AngularJS] Re: Construct a full URL for a route, with params, 
for use in launching a new browser tab
 To: angular@googlegroups.com
 Date: Friday, January 13, 2017, 2:11 AM
 
 
 
 On Fri, 1/13/17, floydjack428 via Angular 
 wrote:
 
  Subject: Re: [AngularJS] Re: Construct a full URL for a
 route, with params, for use in launching a new browser tab
  To: angular@googlegroups.com
  Date: Friday, January 13, 2017, 1:33 AM
  
  
  
  On Thu, 1/12/17, Brian Kotek 
  wrote:
  
   Subject: Re: [AngularJS] Re: Construct a full URL for
 a
  route, with params, for use in launching a new browser tab
   To: angular@googlegroups.com
   Date: Thursday, January 12, 2017, 4:01 PM
   
   Well, I was hoping for something
   that would automatically handle appending the route
 and
  URL
   params using the proper syntax for the current
 location
   strategy. 
   Like I said, I know I can do this
   myself, but before I took the time, I thought I'd see
 if
   there was something built-in that exposes this. I
 realize
   that it's probably not a very common need, but it
   seems like something that either Router or Location
   should be able to handle. After all, the framework
   has to be doing this internally somewhere
   already. 
   On Thu, Jan 12, 2017 at
   6:24 AM, Sander Elias 
   wrote:
   Hi Brian,
   why
   can't you just use some string manipulation?
 Using es6
   template strings that's probably easier to do as
 what
   you are trying to do now?
   RegardsSander
   
   
   
   
   
   -- 
   
   You received this message because you are subscribed
 to a
   topic in the Google Groups "Angular" group.
   
   To unsubscribe from this topic, visit https://groups.google.com/d/
   topic/angular/l1wkqvfmTgk/ unsubscribe.
   
   To unsubscribe from this group and all its topics,
 send an
   email to angular+unsubscribe@
   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.
   
   
   
   
   
   
   -- 
   
   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 angular@googlegroups.com.
   
   Visit this group at
  https://groups.google.com/group/angular.
   
   For more options, visit
  https://groups.google.com/d/optout.
   ara Romaneasca  sub presiunea Rusiei  Imperiul
  Otoman a intervenit i militare pentru a restabili regimul
  Regulamentului Organic. La 31 uhe n Corp expeditionar
 otoman
  conclus de Suieiman Pasa a trecut Dunarea giu. Dupa
  numeroase tratative  in ciuda protestului populatiei
  romanesti ui provizoriu a fost inlocuit de o Locotenenta
  domneascaformata din Ion 3 Radulescu  Christian Teii si
  Nicoiae Goiescu. Programul revolutionar a unele modificari
  si a fost supus aprobarii Portii. S-au reluat contactele
 oua
  conducere si consulii puterilor straine  iar o
  delegatie in frunte cu
  
  -- 
  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 angular@googlegroups.com.
  Visit this group at
  https://groups.google.com/group/angular.
  For more options, visit
  https://groups.google.com/d/optout.ceasta
 era mica proprietate bazata pe munca  adica
 intinderea de pamant cultivabil potrivita capacitatii de
 munca a plugarului si a familiei sale  lucrata de
 proprietar si familia sa  dar neexcluzand eventualele
 si sporadicile concursun'de brate ale semenilor... 
 
 -- 
 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 angular@googlegroups.com.
 Visit this group at
 https://groups.google.com/group/angular.
 For more options, visit
 https://groups.google.com/d/optout.onsulul Turciei la lasi Selim Gurdji la 20 
mai 1908 despre idealul unitatii nationale la romanii din Bucovina

-- 
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 angular@googlegroups.com.
Visit this group at 

[AngularJS] Re: set focus on a specific dynamically input on keydown

2017-01-13 Thread Sander Elias
Aside from the not working with ngRepeat, does the original directive do 
what it's supposed to do?

-- 
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 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: set focus on a specific dynamically input on keydown

2017-01-13 Thread Esa Yletyinen
Hi,

Here's my situation:

  // clicking "next" 
(e.g. tab, enter, down arrow) moves to the last text input (tabIndex 2)
  // clicking "next" 
(e.g. tab, enter, down arrow) moves to the last text input (tabIndex 2)
  // clicking "next" 
(e.g. tab, enter, down arrow) moves to the last text input (tabIndex 2)
  // clicking "next" 
(e.g. tab, enter, down arrow) moves to the first text input (tabIndex 0)

All of these elements are generated by ng-repeat.

The enternextfocus directive I showed I my initial question, which accesses 
the raw DOM element, is used everywhere in the project I'm working on by 
another programmer, and I cannot start changing that, even if it goes 
against specs. This is why I was inclined to do it in an un-angular way, 
and access the element directly. His solution just doesn't work with 
elements generated by ng-repeat.

-- 
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 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: set focus on a specific dynamically input on keydown

2017-01-13 Thread Sander Elias
Hi Esa,

This is where you need to utilize the tabindex attribute (I can adapt my 
code for that, but it's a bit too much work do do that for just a quick 
sample...)
You can set the tabindex using your directive. As I don't know what 
your specific instance is, I can't help you on this. 
Of course, you can ignore existing specs, and write a custom solution for 
this but I would strongly advise against this.

 

That would make your code follow current specs, and makes it possible to 
work with both the tab key (standard behavior!) and the directive I have 
written (once it understands tabIndex.

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 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: How to access dynamically generated elements in a document from a directive link function by the value of a given attribute.

2017-01-13 Thread Esa Yletyinen
Hi Sander, 

Because I need to perform an action on a specific element, that element 
being defined by a directive parameter, when the user interacts with 
another elements. E.g. when the user interacts with the first 
span [my-directive='1']', perform an action on the third 
span [my-directive='3']. And the third span may be generated by ng-repeat.

It doesn't necessarily need to access the raw DOM element, it can interact 
with its my-directive bound to that element as well.


perjantai 13. tammikuuta 2017 9.58.48 UTC+2 Sander Elias kirjoitti:
>
> Hi Esa,
>
> Why do you want to get a hold of the raw DOM element? In an angular app, 
> most of the time if you need one there is a more efficient angular way of 
> doing the same thing, without the need to touch the DOM at all.
>
> 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 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: set focus on a specific dynamically input on keydown

2017-01-13 Thread Esa Yletyinen
I understand that, but I want it to specifically IGNORE the next element 
that can receive focus in a specific instance, and set focus on the next 
element with a specific value of a given attribute, that element being 
generated by ng-repeat.

As described in the other topic I created, I don't know how to select 
dynamically generated elements by their attribute, so I don't know how to 
edit your code appropriately.

Specifically, how do I select e.g. "[my-directive=3]" among these, when all 
of them has "i" rather than 1, 2, or 3 as the value of [my-directive]: 


In a specific instance, I want to the focus to move from 1 to 3, rather 
than the next element. 

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


Re: [AngularJS] Re: Construct a full URL for a route, with params, for use in launching a new browser tab

2017-01-13 Thread jamesmatthews431 via Angular


On Fri, 1/13/17, floydjack428 via Angular  wrote:

 Subject: Re: [AngularJS] Re: Construct a full URL for a route, with params, 
for use in launching a new browser tab
 To: angular@googlegroups.com
 Date: Friday, January 13, 2017, 1:33 AM
 
 
 
 On Thu, 1/12/17, Brian Kotek 
 wrote:
 
  Subject: Re: [AngularJS] Re: Construct a full URL for a
 route, with params, for use in launching a new browser tab
  To: angular@googlegroups.com
  Date: Thursday, January 12, 2017, 4:01 PM
  
  Well, I was hoping for something
  that would automatically handle appending the route and
 URL
  params using the proper syntax for the current location
  strategy. 
  Like I said, I know I can do this
  myself, but before I took the time, I thought I'd see if
  there was something built-in that exposes this. I realize
  that it's probably not a very common need, but it
  seems like something that either Router or Location
  should be able to handle. After all, the framework
  has to be doing this internally somewhere
  already. 
  On Thu, Jan 12, 2017 at
  6:24 AM, Sander Elias 
  wrote:
  Hi Brian,
  why
  can't you just use some string manipulation? Using es6
  template strings that's probably easier to do as what
  you are trying to do now?
  RegardsSander
  
  
  
  
  
  -- 
  
  You received this message because you are subscribed to a
  topic in the Google Groups "Angular" group.
  
  To unsubscribe from this topic, visit https://groups.google.com/d/
  topic/angular/l1wkqvfmTgk/ unsubscribe.
  
  To unsubscribe from this group and all its topics, send an
  email to angular+unsubscribe@
  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.
  
  
  
  
  
  
  -- 
  
  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 angular@googlegroups.com.
  
  Visit this group at
 https://groups.google.com/group/angular.
  
  For more options, visit
 https://groups.google.com/d/optout.
  ara Romaneasca  sub presiunea Rusiei  Imperiul
 Otoman a intervenit i militare pentru a restabili regimul
 Regulamentului Organic. La 31 uhe n Corp expeditionar otoman
 conclus de Suieiman Pasa a trecut Dunarea giu. Dupa
 numeroase tratative  in ciuda protestului populatiei
 romanesti ui provizoriu a fost inlocuit de o Locotenenta
 domneascaformata din Ion 3 Radulescu  Christian Teii si
 Nicoiae Goiescu. Programul revolutionar a unele modificari
 si a fost supus aprobarii Portii. S-au reluat contactele oua
 conducere si consulii puterilor straine  iar o
 delegatie in frunte cu
 
 -- 
 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 angular@googlegroups.com.
 Visit this group at
 https://groups.google.com/group/angular.
 For more options, visit
 https://groups.google.com/d/optout.ceasta era mica proprietate bazata pe munca 
 adica intinderea de pamant cultivabil potrivita capacitatii de munca a 
plugarului si a familiei sale  lucrata de proprietar si familia sa  dar 
neexcluzand eventualele si sporadicile concursun'de brate ale semenilor... 

-- 
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 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: set focus on a specific dynamically input on keydown

2017-01-13 Thread Sander Elias
Hi Esa,

It doesn't set the focus on the next random element. It sets the focus on 
the next element THAT CAN RECEIVE focus. It ignores tab-order, but that can 
be fixed in the code.
If that's not what you need, the code is also easy to adapt to select 
whatever criteria you might have. Just adapt the if statement in the 
traverse function. 

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