Renato, it is exactly what I needed. Thank you very much.
Em terça-feira, 24 de junho de 2014 17h18min42s UTC-3, Renato Michnik de Carvalho escreveu: > > Gustavo, take a look an example i did to you: > > http://plnkr.co/edit/4YtWUDFSGS0IxmMb82fE?p=preview > > Atenciosamente, > Renato Michnik de Carvalho <[email protected] <javascript:>> > Cel: +55 (61) 8525-2728 > > On 24 de junho de 2014 at 15:15:14, Gustavo Alves ([email protected] > <javascript:>) wrote: > > Hello guys, I'm new to JS. Actually got to learn a few days. > > Need a little help in a program that increment or decrement the value of a > variable using the letters "a, b, c, d, e." And that beginning with any > letter I can make a loop just by clicking the + or -. > > I have no idea how to do that. > > ex:. Beginnings in letter "c" by clicking the + 3 times, will have to > finish the letter "a". > > The html code would look like this: > > <div class="btn-group"> > > <button type="button" class="btn btn-default"> - </ button> > > <button type="button" class="btn btn-default"> {{letter}} </ button> > > <button type="button" class="btn btn-default"> + </ button> > > </ div> > > > > Olá pessoal, sou novo no JS. Na verdade peguei pra aprender a alguns dias. > Preciso de uma ajuda num programinha que incremente ou decremente o valor > de uma variável usando as letras "a, b, c, d, e". E que começando por > qualquer letra eu posso fazer um loop só clicando no + ou no -. > > Não faço idéia de como farei isso. > ex.: Começo na letra "c" clicando no + 3 vezes, terá que terminar na letra > "a". > > O código html seria assim: > <div class="btn-group"> > <button type="button" class="btn btn-default"> - </button> > <button type="button" class="btn btn-default">{{letra}}</button> > <button type="button" class="btn btn-default"> + </button> > </div> > -- > You received this message because you are subscribed to the Google Groups > "AngularJS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To post to this group, send email to [email protected] <javascript:> > . > Visit this group at http://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 "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
