Jim Lavin - AngularJS Services [2014, PDF, ENG] + Code

seeders: 6
leechers: 0
Added 11 years ago by D@vidoff in Books  > Non-Fiction

Download Fast Safe Anonymous
movies, software, shows...

Files

Jim Lavin - AngularJS Services [2014, PDF, ENG] + Code (Size: 3.65 MB)
  Code
  Source
  .DS_Store 8 KB
  .bowerrc 38 B
  .editorconfig 173 B
  .jshintrc 544 B
  .npmignore 52 B
  .yo-rc.json 555 B
  Gruntfile.js 6.19 KB
  ReadMe.md 6.6 KB
  app.js 3.69 KB
  app.less 3.55 KB
  bootswatch.less 5.79 KB
  bower.json 620 B
  data
  .DS_Store 6 KB
  BrewProcess.json 3.41 KB
  StyleMatchingRules.json 2.18 KB
  adjunctseed.json 19.92 KB
  brewCalendar.json 4.66 KB
  equipmentseed.json 9.94 KB
  fermentableseed.json 63.72 KB
  hopseed.json 31.26 KB
  import.cmd 1 KB
  mashseed.json 22.89 KB
  styleseed.json 232.46 KB
  waterprofileseed.json 4.06 KB
  yeastseed.json 83.59 KB
  directive
  dialog
  dialog-spec.js 541 B
  dialog.html 1.96 KB
  dialog.js 1.54 KB
  dialog.less 0 B
  gravatar
  gravatar-spec.js 543 B
  gravatar.js 1.58 KB
  mustEqual
  mustEqual-spec.js 544 B
  mustEqual.js 853 B
  notificationList
  notificationList-spec.js 551 B
  notificationList.html 291 B
  notificationList.js 1.35 KB
  notificationList.less 0 B
  uniqueEmail
  uniqueEmail-spec.js 546 B
  uniqueEmail.js 1 KB
  uniqueUserName
  uniqueUserName-spec.js 549 B
  uniqueUserName.js 1009 B
  waitSpinner
  waitSpinner-spec.js 546 B
  waitSpinner.html 83 B
  waitSpinner.js 918 B
  waitSpinner.less 0 B
  dist
  app.full.min.css 126.84 KB
  app.full.min.js 594.71 KB
  bower_components
  font-awesome
  fonts
  FontAwesome.otf 61.38 KB
  fontawesome-webfont.eot 37.31 KB
  fontawesome-webfont.svg 197.41 KB
  fontawesome-webfont.ttf 78.76 KB
  fontawesome-webfont.woff 43.39 KB
  img
  Red-signin-Small-base-44dp.png 901 B
  Red-signin-Small-hover-44dp.png 905 B
  Red-signin-Small-press-44dp.png 922 B
  active_200.png 832 B
  [email protected] 1.44 KB
  ajax-loader.gif 3.13 KB
  apple-touch-icon-114-precomposed.png 5.07 KB
  apple-touch-icon-144-precomposed.png 6.25 KB
  apple-touch-icon-57-precomposed.png 2.07 KB
  apple-touch-icon-72-precomposed.png 2.83 KB
  beer_bottle.jpg?042148 7.05 KB
  brewsculpture.jpg?042148 76.17 KB
  cacao_nibs.jpg?042148 16.46 KB
  carboy.jpg?042148 35.57 KB
  diybrewery_logo.png 2.07 KB
  draft_tower.jpg?042148 6.86 KB
  favicon.png 13.3 KB
  fermentor.jpg?042148 5.62 KB
  hops.jpg?042148 12.24 KB
  keg.jpg?042148 9.99 KB
  malt.jpg?042148 23.5 KB
  pressed_200.png 853 B
  [email protected] 1.46 KB
  smoked_malt.jpg?042148 14.46 KB
  sugar.jpg?042148 9.23 KB
  wyeast.jpg?042148 19.51 KB
  yeast.jpg?042148 12.3 KB
  index.html 734 B
  filter
  fermentableType
  fermentableType-spec.js 3.67 KB
  fermentableType.js 272 B
  filteFermentable
  filterFermentable-spec.js 7.34 KB
  filterFermentable.js 450 B
  startFrom
  startFrom-spec.js 3.72 KB
  startFrom.js 200 B
  translateFermentableToDisplay
  translateFermentableToDisplay-spec.js 4.06 KB
  translateFermentableToDisplay.js 294 B
  gulpfile.js 4.09 KB
  img
  Red-signin-Small-base-44dp.png 2.12 KB
  Red-signin-Small-hover-44dp.png 2.12 KB
  Red-signin-Small-press-44dp.png 2.13 KB
  active_200.png 2.11 KB
  [email protected] 3.19 KB
  ajax-loader.gif 3.13 KB
  apple-touch-icon-114-precomposed.png 8.9 KB
  apple-touch-icon-144-precomposed.png 10.97 KB
  apple-touch-icon-57-precomposed.png 4.2 KB
  apple-touch-icon-72-precomposed.png 5.36 KB
  beer_bottle.jpg?042148 7.87 KB
  brewsculpture.jpg?042148 85.81 KB
  cacao_nibs.jpg?042148 19 KB
  carboy.jpg?042148 38.4 KB
  diybrewery_logo.png 4.2 KB
  draft_tower.jpg?042148 7.69 KB
  favicon.png 32.48 KB
  fermentor.jpg?042148 6.41 KB
  hops.jpg?042148 13.85 KB
  keg.jpg?042148 10.91 KB
  malt.jpg?042148 27.29 KB
  pressed_200.png 2.14 KB
  [email protected] 3.26 KB
  smoked_malt.jpg?042148 16 KB
  sugar.jpg?042148 10.23 KB
  wyeast.jpg?042148 21.87 KB
  yeast.jpg?042148 13.49 KB
  index.html 6.28 KB
  karma-unit.config.js 2.2 KB
  model
  .DS_Store 6 KB
  adjunct
  adjunct-spec.js 488 B
  adjunct.js 439 B
  brewer
  brewer-spec.js 187 B
  brewer.js 423 B
  brewerInventory
  brewerInventory-spec.js 214 B
  brewerInventory.js 270 B
  brewingProcessStateMachine
  brewingProcessStateMachine-spec.js 247 B
  brewingProcessStateMachine.js 3.5 KB
  equipment
  Equipment-spec.js 196 B
  Equipment.js 648 B
  fermentable
  fermentable-spec.js 202 B
  fermentable.js 2.74 KB
  hop
  hop-spec.js 178 B
  hop.js 796 B
  mashProfile
  mashProfile-spec.js 202 B
  mashProfile.js 380 B
  mashStep
  mashStep-spec.js 193 B
  mashStep.js 365 B
  modelTransformer
  modelTransformer-spec.js 217 B
  modelTransformer.js 690 B
  recipe
  recipe-spec.js 187 B
  recipe.js 3.89 KB
  style
  style-spec.js 184 B
  style.js 829 B
  styleMatchingRules
  styleMatchingRules-spec.js 223 B
  styleMatchingRules.js 3.57 KB
  waterProfile
  waterProfile-spec.js 205 B
  waterProfile.js 350 B
  yeast
  yeast-spec.js 184 B
  yeast.js 681 B
  package.json 761 B
  partial
  .DS_Store 6 KB
  base
  base-spec.js 327 B
  base.html 58 B
  base.js 1.48 KB
  base.less 0 B
  boil
  boil-spec.js 327 B
  boil.html 783 B
  boil.js 1.01 KB
  boil.less 0 B
  calendar
  calendar-spec.js 335 B
  calendar.html 62 B
  calendar.js 83 B
  calendar.less 0 B
  error
  error-spec.js 329 B
  error.html 59 B
  error.js 80 B
  error.less 0 B
  home
  home-spec.js 327 B
  home.html 2.4 KB
  home.js 1.74 KB
  home.less 44 B
  login
  login-spec.js 329 B
  login.html 1.17 KB
  login.js 1.5 KB
  login.less 2.21 KB
  mash
  mash-spec.js 327 B
  mash.html 1.78 KB
  mash.js 2.05 KB
  mash.less 0 B
  mashout
  mashout-spec.js 333 B
  mashout.html 1.16 KB
  mashout.js 1.57 KB
  mashout.less 0 B
  menu
  menu-spec.js 327 B
  menu.html 874 B
  menu.js 79 B
  menu.less 0 B
  preheatboil
  preheatboil-spec.js 341 B
  preheatboil.html 775 B
  preheatboil.js 1 KB
  preheatboil.less 0 B
  preheatmash
  preheatmash-spec.js 341 B
  preheatmash.html 849 B
  preheatmash.js 1.38 KB
  preheatmash.less 0 B
  profile
  profile-spec.js 333 B
  profile.html 61 B
  profile.js 82 B
  profile.less 0 B
  recipe
  recipe-spec.js 331 B
  recipe.html 31.46 KB
  recipe.js 8.98 KB
  recipe.less 0 B
  register
  register-spec.js 335 B
  register.html 4.87 KB
  register.js 804 B
  register.less 0 B
  schedulebrewday
  schedulebrewday-spec.js 372 B
  schedulebrewday.html 2.78 KB
  schedulebrewday.js 2.2 KB
  schedulebrewday.less 0 B
  startbrewing
  startbrewing-spec.js 343 B
  startbrewing.html 1.26 KB
  startbrewing.js 1.28 KB
  startbrewing.less 0 B
  service
  .DS_Store 6 KB
  adjunctDataService
  adjunctDataService-spec.js 22.97 KB
  adjunctDataService.js 5.3 KB
  authenticate
  authenticate-spec.js 3.68 KB
  authenticate.js 5.72 KB
  brewCalendar
  brewCalendar-spec.js 205 B
  brewCalendar.js 15.06 KB
  brewerDataService
  brewerDataService-spec.js 27.35 KB
  brewerDataService.js 6.93 KB
  brewingHistoryDataService
  brewingHistoryDataService-spec.js 244 B
  brewingHistoryDataService.js 5.72 KB
  dialog
  dialog-spec.js 2.18 KB
  dialog.js 947 B
  equipmentDataService
  equipmentDataService-spec.js 37.96 KB
  equipmentDataService.js 5.02 KB
  errors
  errors-spec.js 2.47 KB
  errors.js 1023 B
  events
  events-spec.js 185 B
  events.js 14.74 KB
  facebookAuthenticate
  facebookAuthenticate-spec.js 229 B
  facebookAuthenticate.js 2.62 KB
  fermentableDataService
  fermentableDataService-spec.js 235 B
  fermentableDataService.js 5.48 KB
  googleCalendar
  googleCalendar-spec.js 211 B
  googleCalendar.js 4.46 KB
  googlePlusAuthentication
  googlePlusAuthentication-spec.js 258 B
  googlePlusAuthentication.js 5.22 KB
  googleTasks
  googleTasks-spec.js 202 B
  googleTasks.js 4.27 KB
  hopDataService
  hopDataService-spec.js 211 B
  hopDataService.js 4.41 KB
  logging
  logging-spec.js 207 B
  logging.js 1.47 KB
  mashProfileDataService
  mashProfileDataService-spec.js 235 B
  mashProfileDataService.js 5.25 KB
  md5
  md5-spec.js 238 B
  md5.js 7.47 KB
  messaging
  messaging-spec.js 1.05 KB
  messaging.js 909 B
  mongolab
  mongolab-spec.js 2.19 KB
  mongolab.js 3.81 KB
  notification
  notification-spec.js 222 B
  notification.js 919 B
  recipeDataService
  recipeDataService-spec.js 220 B
  recipeDataService.js 6.4 KB
  rulesEngine
  rulesEngine-spec.js 11.33 KB
  rulesEngine.js 2.54 KB
  sha
  sha-spec.js 266 B
  sha.js 4.51 KB
  stateMachine
  stateMachine-spec.js 6.2 KB
  stateMachine.js 11.96 KB
  styleDataService
  styleDataService-spec.js 217 B
  styleDataService.js 4.62 KB
  utf8encode
  utf8encode-spec.js 398 B
  utf8encode.js 2.62 KB
  waterProfileDataService
  waterProfileDataService-spec.js 238 B
  waterProfileDataService.js 5.35 KB
  yeastDataService
  yeastDataService-spec.js 217 B
  yeastDataService.js 4.6 KB
  tests
  support
  test.messaging.js 234 B
  test.mongolab.js 823 B
  variables.less 25.36 KB
  __MACOSX
  Source
  ._.DS_Store 120 B
  ._bootswatch.less 387 B
  ._data 222 B
  ._variables.less 386 B
  data
  ._.DS_Store 120 B
  img
  ._beer_bottle.jpg?042148 315 B
  ._brewsculpture.jpg?042148 317 B
  ._cacao_nibs.jpg?042148 317 B
  ._carboy.jpg?042148 316 B
  ._draft_tower.jpg?042148 317 B
  ._fermentor.jpg?042148 316 B
  ._hops.jpg?042148 318 B
  ._keg.jpg?042148 315 B
  ._malt.jpg?042148 318 B
  ._smoked_malt.jpg?042148 317 B
  ._sugar.jpg?042148 318 B
  ._wyeast.jpg?042148 316 B
  ._yeast.jpg?042148 317 B
  model
  ._.DS_Store 120 B
  partial
  ._.DS_Store 120 B
  service
  ._.DS_Store 120 B
  Jim Lavin - AngularJS Services - 2014.pdf 950.06 KB

Description


Книги и журналы » Компьютерная литература » Веб-дизайн и программирование

AngularJS Services

Год: 2014
Автор: Jim Lavin
Издательство: Packt Publishing
ISBN: 978-1-78398-357-5
Язык: Английский
Формат: PDF
Качество: Изначально компьютерное (eBook)
Количество страниц: 152
Описание:

This book provides you with the skills and best practices needed to create AngularJS services. It starts with the fundamentals of what services are and their role in a typical AngularJS application. You will walk through the development of a real-world application using services across the various application layers and then move on to create services that provide cross-cutting concerns such as messaging, logging, and authentication.

Next, the book covers services that provide data access showing you how to interact with external cloud-based data services and how to cache data on the client to reduce network latency. The book then shows you how to write services that leverage other cloud-based services to create mashups and include functionality in your application without writing a lot of code.

You will also learn how to create business logic objects, rules engines, and finite state machines, which can be used to provide business logic for your application.
[spoiler="Примеры страниц"]

[/spoiler]
[spoiler="Оглавление"]
Preface
Chapter 1: The Need for Services

AngularJS best practices
Responsibilities of controllers
Responsibilities of directives
Responsibilities of services
Chapter 2: Designing Services
Measure twice, and cut once
Defining your service's interface
Designing for testability
Services, factories, and providers
Structuring your service in code
Configuring your service
Chapter 3: Testing Services
The basics of a test scenario
Loading your modules in a scenario
Mocking data
Mocking services
Mocking services with Jasmine spies
Handling dependencies that return promises
Mocking backend communications
Mocking timers
Chapter 4: Handling Cross-cutting Concerns
Communicating with your service's consumers using patterns
Managing user notifications
Logging application analytics and errors
Authentication using OAuth 2.0
Chapter 5: Data Management
Models provide the state and business logic
Implementing a CRUD data service
Caching data to reduce network traffic
Transforming data in the service
Chapter 6: Mashing in External Services
Storing events with Google Calendar
Using Google Tasks to build a brewing task list
Tying the Google Calendar and task list together
Chapter 7: Implementing the Business Logic
Encapsulating business logic in models
Encapsulating business logic in services
Models or services, which one to use?
Controlling a view flow with a state machine
Validating complex data with a rules engine
Chapter 8: Putting It All Together
Wiring in authentication
Displaying notifications and errors
Controlling the application flow
Displaying data from external services
Building and calculating the recipe
Messaging is the heart of the application
Index
[/spoiler]