没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
LearningAngular2
TableofContents
LearningAngular2
Credits
AbouttheAuthor
Acknowledgments
AbouttheReviewer
www.PacktPub.com
eBooks,discountoffers,andmore
Whysubscribe?
Preface
Whatthisbookcovers
Whatyouneedforthisbook
Whothisbookisfor
Conventions
Readerfeedback
Customersupport
Downloadingtheexamplecode
Errata
Piracy
Questions
1.CreatingOurVeryFirstComponentinAngular2
Afreshstart
Webcomponents
WhyTypeScriptoverothersyntaxes?
Settingupourworkspace
Installingdependencies
InstallingTypeScript
InstallingTypeScripttypings
Hello,Angular2!
TypeScriptclasses
Introducingmetadatadecorators
CompilingTypeScriptintobrowser-friendlyJavaScript
TheHTMLcontainer
Servingtheexamplesofthisbook
Puttingeverythingtogether
EnhancingourIDE
SublimeText3
Atom
VisualStudioCode
WebStorm
LeveragingGulpwithotherIDEs
DivingdeeperintoAngular2components
Improvingproductivity
Componentmethodsanddataupdates
Addinginteractivitytothecomponent
ImprovingthedataoutputintheviewandpolishingtheUI
Summary
2.IntroducingTypeScript
UnderstandingthecaseforTypeScript
ThebenefitsofTypeScript
IntroducingTypeScriptresourcesinthewild
TheTypeScriptofficialsite
TheTypeScriptWiki
TypesinTypeScript
String
DeclaringourvariablestheECMAScript6way
Number
Boolean
Array
Dynamictypingwiththeanytype
Enum
Void
Typeinference
Functions,lambdas,andexecutionflow
Annotatingtypesinourfunctions
FunctionparametersinTypeScript
Optionalparameters
Defaultparameters
Restparameters
Overloadingthefunctionsignature
Betterfunctionsyntaxandscopehandlingwithlambdas
Classes,interfaces,andclassinheritance
Anatomyofaclass–constructors,properties,methods,getters,andsetters
InterfacesinTypeScript
Extendingclasseswithclassinheritance
DecoratorsinTypeScript
Classdecorators
Extendingtheclassdecoratorfunctionsignature
Propertydecorators
Methoddecorators
Parameterdecorators
Organizingourapplicationswithmodules
Internalmodules
Externalmodules
Theroadahead
Summary
3.ImplementingPropertiesandEventsinOurComponents
Abettertemplatesyntax
Databindingswithinputproperties
Someextrasyntacticsugarwhenbindingexpressions
Eventbindingwithoutputproperties
Inputandoutputpropertiesinaction
Settingupcustomvaluesdeclaratively
Communicatingbetweencomponentsthroughcustomevents
Emittingdatathroughcustomevents
Localreferencesintemplates
Alternativesyntaxforinputandoutputproperties
Configuringourtemplatefromourcomponentclass
Internalandexternaltemplates
EncapsulatingCSSstyling
Thestylesproperty
ThestyleUrlsproperty
Inlinestylesheets
Managingviewencapsulation
Summary
4.EnhancingOurComponentswithPipesandDirectives
DirectivesinAngular2
Coredirectives
NgIf
NgFor
NgStyle
NgClass
NgSwitch,NgSwitchWhen,andNgSwitchDefault
ManipulatingtemplatebindingswithPipes
Theuppercase/lowercasepipe
Thenumber,percent,andcurrencypipes
Thenumberpipe
Thepercentpipe
Thecurrencypipe
Theslicepipe
Thedatepipe
TheJSONpipe
Thereplacepipe
Thei18npipes
Thei18nPluralpipe
Thei18nSelectpipe
Theasyncpipe
PuttingitalltogetherinthePomodorotasklist
SettingupourmainHTMLcontainer
BuildingourtasklisttablewithAngulardirectives
剩余420页未读,继续阅读
资源评论
- deping_chen2018-02-09非常棒,可惜不是angular 4,不过也可以读。
yinkaisheng-nj
- 粉丝: 763
- 资源: 6953
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功