Beruflich Dokumente
Kultur Dokumente
Trifon Statkov
About me
Trifon Statkov
Software developer at
Co-owner at
@Tricho340
The Plan
I will make you feel confident using
Angular JS in less than 60 minutes
Presentation comprises of 3 parts:
Part I. Absolute introduction to Angular JS
Part II. Angular JS building blocks
Part III. Some coding
More benefits
Less boilerplate code
Less effort in mundane tasks allowing
for better focus on what is ACTUALLY
VALUABLE THE LOGIC
More efficiency in development
Separation of concerns
Angular JS is MVC
MVC = Model-View-Controller
Less dependencies
Improves maintainability
It is easier to read and understand code
M for Model
Holds the data
Notifies the View and the Controller for
changes in the data
Does not know about the View and the
Controller
V for View
C for Controller
Controls everything
Knows about both the Model and the
View
The logic resides in it
What to happen, when and how
Dependency Injection
No more global objects
Classes will get the objects they need
(their dependencies) in order to work
Controllers
Models
Services
Directives
Modules
Filters
Factories
Scopes
Templates
Routes
Animations
Controllers in Angular JS
Define the applications behaviour
Controllers
Services
Directives
Factories
Filters
Configuration information
Providers (1)
4 types
Factory
Service
Value
Provider
Providers - Factory
We define a function that returns an
object to which we have attached
methods and properties that will be
accessible by factory users later
This object is available everywhere in
the module in which the factory was
defined via Dependency Injection
Providers - Service
You define a function in which additional
functions and properties are defined via
the this keyword
Providers - value
Similar to constants
Could be used to store configuration
properties
Providers - provider
Define $get method in a function that
returns the object to be injected
The object can have various properties
and methods similar to the object
returned by factory
Services
Directives
Factories
Filters
Configuration information
A word of warning
You better avoid using Angular JS for IE6
and IE7 projects
Because of lack of support for custom tags and
hashchange events
http://docs.angularjs.org/guide/dev_guide.
e2e-testing
A guide to testing Angular JS applications
Questions?
Saturday,June 8, 2013
Same familiar format 1 day filled with sessions
focused on SharePoint technologies
Best SharePoint professionals in the region
Registrations will be open next week (15 th)!
www.SharePointSaturday.eu
Platinum Sponsors:
Gold Sponsors:
Swag Sponsors:
Media Partners: