Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Angular歴3ヶ月がAngularと本気で向き合ってみた

yae
December 07, 2019

 Angular歴3ヶ月がAngularと本気で向き合ってみた

【We Are JavaScripters! 3周年記念】 WeJS Festival ! (2019/12/07)の登壇資料です。

yae

December 07, 2019
Tweet

More Decks by yae

Other Decks in Technology

Transcript

  1. About me • Name: Emi Yaegashi • Softwere Engineer (Python,

    Rails, Angular) • Organizer of We are Javascripters! • Twitter: @yae19921110 • Favorite: United Kingdom, Disney (Donald Duck), Travel✈, Japanese Sake • Today is the first LT in WeJS!!
  2. ίʔυ͕ࢄΒ͔͍ͬͯΔ ਌ίϯϙʔωϯτ ࢠίϯϙʔωϯτA ๮άϥϑ1දࣔ Data A Data B Data(API͔ΒҰׅͰऔಘ) Data

    A άϥϑ1༻Option ࢠίϯϙʔωϯτB ๮άϥϑ2දࣔ Data B άϥϑ2༻Option ࢠίϯϙʔωϯτC جຊ৘ใΛදࣔ Data C Data C
  3. ϥΠϒϥϦ͕ࠞࡏ(Angular༻ίϯϙʔωϯτͱૉͷJS) ਌ίϯϙʔωϯτ ࢠίϯϙʔωϯτA NVD3 (d3.jsΛѻ͍΍ͨ͘͢͠ϥΠϒϥϦ) *Angulary༻ίϯϙʔωϯτΛ࢖༻ ଙίϯϙʔωϯτa ๮άϥϑ1 ଙίϯϙʔωϯτa ๮άϥϑ2

    ࢠίϯϙʔωϯτB D3.jsͷϨʔμʔνϟʔτ༻ͷϥΠϒϥϦ *ૉͷJSϥΠϒϥϦΛ࢖༻ ଙίϯϙʔωϯτ Ϩʔμʔνϟʔτ NVD3ͷAngular༻WrapperϥΠϒϥϦ: https://github.com/krispo/ng2-nvd3 D3.jsͷϨʔμʔνϟʔτϥΠϒϥϦ: https://github.com/alangrafu/radar-chart-d3
  4. ϓϩδΣΫτͰ಄Λ๊͑ͨ͜ͱ ʮίʔυ͕ࢄΒ͔͍ͬͯΔʯ΁ͷରԠ 1. ڞ௨ύʔπͱͯ͠ѻ͑ͳ͍͔ݕ౼͢Δ 2. ਌ίϯϙʔωϯτ͔Β౉͢σʔλΛ੔ཧ͢Δ ਌ίϯϙʔωϯτ ࢠίϯϙʔωϯτA άϥϑ1දࣔ Data

    A Data B Data(API͔ΒҰׅͰऔಘ) Data A άϥϑ1༻Option ࢠίϯϙʔωϯτB άϥϑ2දࣔ Data B άϥϑ2༻Option ࢠίϯϙʔωϯτC جຊ৘ใΛදࣔ Data C Data C 1 άϥϑ1༻Option? άϥϑ2༻Option? 2
  5. ϓϩδΣΫτͰ಄Λ๊͑ͨ͜ͱ ʮϥΠϒϥϦ͕ࠞࡏʯ΁ͷରԠ 1. Angularͷίϯϙʔωϯτ͕͋Δɺ༷ʑͳνϟʔτλΠ ϓʹରԠͨ͠ϥΠϒϥϦͷ࢖༻Λݕ౼͢Δ ྫ: NG2 Charts (https://github.com/valor-software/ng2-charts) 11

    Angular Component Libraries You Should Know In 2019Ͱ΋঺հ͞Ε͍ͯΔ (https://blog.bitsrc.io/11-angular-component-libraries-you-should-know-in-2018-e9f9c9d544ff) ਌ίϯϙʔωϯτ ࢠίϯϙʔωϯτA NVD3 (d3.jsΛѻ͍΍ͨ͘͢͠ϥΠϒϥϦ) *Angulary༻ίϯϙʔωϯτΛ࢖༻ ଙίϯϙʔωϯτa ๮άϥϑ1 ଙίϯϙʔωϯτa ๮άϥϑ2 ࢠίϯϙʔωϯτB D3.jsͷϨʔμʔνϟʔτ༻ͷϥΠϒϥϦ *ૉͷJSϥΠϒϥϦΛ࢖༻ ଙίϯϙʔωϯτ Ϩʔμʔνϟʔτ 1