What'sthedifferencebetweenthe@Componentand@InjectComponentannotations?
The@Componentannotationisusedtodefinethetypeofcomponent,anditsparameterbindings.Whenusing@Component,thetemplatemustnotdefinethetype,andanyparameterbindingsaremergedin:
Backtohome
...
@Component(parameters={"page=index"})
privatePageLinkhome;
Herethetypeofcomponentisdefinedbythefieldty...[阅读全文]