ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

AngularJS Quiz App Tutorial (2/24) - Controller Properties and $scope

angular

angularjs

javascript

webapp

angular app

$scope

controller as

hungryturtlecode

hungry turtle code

Adrian Henry

angular quiz app

Автор: Hungry Turtle Code

Загружено: 2016-03-02

Просмотров: 14892

Описание: The writeup for this video:
https://hungryturtlecode.com/code-pro...

The first part of this series can be found here:
   • Build An AngularJS Quiz App From Scratch (...  

The Git Repo for this project:
https://github.com/adiman9/HungryTurt...

In the second part of this series we will dive into some actual angular code. We take a look at how we can create variable or properties on our list controller and then use those in our html.

There are two common ways of doing this and I will explain both. The first method seems to be the most common within beginner tutorials which is using $scope.

$scope is a service object within Angular that allows you to bind properties to it and those properties will then be accessible from inside the HTML as long as you are within the html that that particular controller has control of.

The second method abstracts away the $scope service (although it is still running in the background) and I prefer this way as I feel it is more explicit. This method is known as the "controller as" syntax. In the video I explain why I prefer this method over $scope. But you should feel free to use either method.

Support Me On Patreon
  / hungryturtlecode  

One Off Donations:
PayPal - https://www.paypal.com/cgi-bin/webscr...
Credit / debit card - https://hungryturtlecode.com/donate

Bitcoin: 39iDX27ZSkYtRhUrH5r5YN128wEjwDmSYp
Ethereum: 0x38b3cBF8Ee3EeeeA33D1925bA0ce0e90c8EcFD46
Horizen (ZEN): znanBCHpWJecBwZZmft9r5QzbzRX4nQn6Dz

Check Out The Site!
https://hungryturtlecode.com/?utm_sou...

SUBSCRIBE!
http://www.youtube.com/hungryturtlede...

Join the Community!
Patreon -   / hungryturtlecode  
Follow Me --   / hungryturtledev  
Quora - https://www.quora.com/profile/Adrian-...
Like Me --   / hungryturtlecode  
linkedin --   / hungry-turtle-code  

Github (Personal) -- https://github.com/adiman9
Github (Hungry Turtle Code) -- https://github.com/HungryTurtleCode

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
AngularJS Quiz App Tutorial (2/24) - Controller Properties and $scope

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]