AngularJS Tutorial #13 - ng-click directive

Поділитися
Вставка
  • Опубліковано 26 жов 2024

КОМЕНТАРІ • 30

  • @utkarshsahu
    @utkarshsahu 7 років тому +12

    Did anyone mention, you are just awesome. You gave me the confidence that nobody else could give! Thanks.

  • @nuwanthuduwage6869
    @nuwanthuduwage6869 10 місяців тому

    Thank you very much for the tutorial. ❤❤
    Removing item from the array, rather than passing the ninja object we can pass the index as removeItem($index) and directly remove it inside the controller logic as ninjas.splice(index,1) 😊

  • @JimmyDaMid
    @JimmyDaMid 3 роки тому

    Great tutorial! The first part is much simpler to understand after I realize that the "order" means "sort" instead of "purchase" (like buying the service of the ninja)

  • @vladimir92ful
    @vladimir92ful 6 років тому +2

    This tutorial is awesome, thanks! All the best from Serbia!

  • @doobiesoda3873
    @doobiesoda3873 7 років тому +2

    Omg this is very cool. Love this, thanks Shaun. And I love the way you say browser. :D

  • @Jongo1
    @Jongo1 8 років тому +3

    These are brilliant so far. Thank you :)

  • @JTagizade
    @JTagizade 8 років тому +2

    thanks a lot for this tutorial, it helped me a lot.

  • @suraskumarnayak8350
    @suraskumarnayak8350 4 роки тому

    awesome explaination man !! love it

  • @NezavisniMislilac
    @NezavisniMislilac 6 років тому +1

    Amazing tutorials, thanks!

  • @m_elhosseiny
    @m_elhosseiny 7 років тому +1

    The javascript could've been simpler I think, you could've made the on click event negates the 'ninja.available' which will automatically effect the ng-show attribute

    • @waliabbas
      @waliabbas 6 років тому

      Good advice! I tried it and it works! Thank you

  • @muhannadmuhammad2591
    @muhannadmuhammad2591 7 років тому +2

    dear could you help me to change properties value on the object for example in need to change the belt color on click so should I push the value to element like $scope.ninjas.belt="red"; but this will apply for all the array of object how can I change the value of one prop. on specific array with index 2 for ex.

  • @gijs3000
    @gijs3000 8 років тому +2

    Hi, Love the videos you make. In this exercise, whenever I click on a cross (doesn't matter which one) , the ninja lowest in the row dissapears.(instead of the one I actually clicked on.) Any thoughts on what the problem might be?

    • @NetNinja
      @NetNinja  8 років тому

      +gijs3000 Hey, thanks :). Would you be able to pop your code into a code pen - codepen.io/pen/ - and then save it, so i can see your code? Cheers.

  • @LAN01137
    @LAN01137 3 роки тому

    just wondering how you gonna undo that action?

  • @mont1170
    @mont1170 7 років тому

    Ninja in ninjas is quite confusing. You should've used some other example. I highly appreciate your work though.

  • @hannesbeukes345
    @hannesbeukes345 4 роки тому

    hi , in this js method could you not just have said : ninja.show = !ninja.show ?

  • @CaLnba
    @CaLnba 7 років тому

    It does not work for me. In the console I keep getting message TypeError: $scope.fellas.indexof is not a function. What is wrong?

    • @rov2004
      @rov2004 7 років тому

      Same thing to me, try $scope.fellas.indesOf the problem was the lowercase o, change it to upercase and it works

    • @rov2004
      @rov2004 7 років тому

      Same thing to me, try $scope.fellas.indesOf the problem was the lowercase o, change it to upercase and it works

    • @badald.abnish8753
      @badald.abnish8753 Рік тому

      @@rov2004 i did the same mistake..lol

  • @bartekmatyjaszczyk8155
    @bartekmatyjaszczyk8155 7 років тому +2

    Awesome tutorials :) but in {{ninja.belt}} belt this row VS code throws me up a css error that property value expected(for the first curly bracket) and for the second "at rule or selector expected".in previous tutorials everything was 0K :) anyone? ;)

  • @hettyjvt
    @hettyjvt 6 років тому

    Love the tutorials ^_^ but man RIP headphone users during intros and outros XD they are just so loud compared to you speaking :/

  • @shajahanj2646
    @shajahanj2646 6 років тому +1

    ng-love="ninja"

  • @hasannaseem5705
    @hasannaseem5705 Рік тому

    vip tutorial

  • @samikhan-gv1zy
    @samikhan-gv1zy 8 років тому

    from where can i download css

    • @husainahmmed9025
      @husainahmmed9025 7 років тому

      You can download css from here github.com/iamshaunjp/angular-js-playlist/blob/master/content/css/styles.css