Explore tweets tagged as #AngularTip
@Waterplea
Alex Inkin
7 months
#AngularTip for the day! Use Angular animations + a neat #CSS grid trick to implement perfect crossfade: https://t.co/7PoVr5dgbS
1
6
74
@Waterplea
Alex Inkin
2 years
#AngularTip for the day! Add helper functions to your injection tokens so that consumers can easily provide it with one line with a type-safe value: https://t.co/PlOOmpB1nb
2
14
73
@Waterplea
Alex Inkin
2 years
#AngularTip for the day! Need a way to control `hostDirective` from a host? Create a decorator that injects the directive and updates the value! No getters unfortunately, since hostDirectives run their lifecycles first and we end up with ExpressionChanged https://t.co/PeRR22I9Ao
0
7
57
@Waterplea
Alex Inkin
2 years
#AngularTip for the day! Want to use CSS :invalid selector with #Angular reactive forms? Create a little directive to toggle validity on the native HTML element: https://t.co/TIT7wpZBNt
3
11
90
@Waterplea
Alex Inkin
3 years
#AngularTip for the day! Ever wanted your outputs to bubble? You can achieve similar result using native CustomEvent. Not typesafe, unfortunately, but check out the example below: https://t.co/Ud3GneDsg2
0
6
53
@Waterplea
Alex Inkin
2 years
#AngularTip for the day! While I think browsers should just do that on their own, I present you a simple directive to be able to copy 'select' value. Keep in mind blitz will not work due to permissions and iframe: https://t.co/r0xVMVV942
2
18
95
@Waterplea
Alex Inkin
2 years
#AngularTip for the day! Create a fancy fadeout effect for overflown content utilizing CSS masking: https://t.co/UuXI6MQYEB
0
2
21
@Waterplea
Alex Inkin
8 months
#AngularTip for the day! Did you know you can create dynamic components on existing DOM elements? This way you can have a directive with certain logic you always need, but the visual representation can be provided with DI as dynamic component. Check it out https://t.co/cqYuApmqNd
2
11
101
@Waterplea
Alex Inkin
2 years
#AngularTip for the day! Want to use styles with directives? Create a dummy component that stores the styles and a small helper to use in one line inside your directive. See it in action: https://t.co/UBAvCuK8gj
4
13
80
@Waterplea
Alex Inkin
2 years
#AngularTip for the day! Add a small ResizeObserver based event manager plugin to your @Angular app and be able to watch for elements changing dimensions with ease: https://t.co/3LGt5N48TB
1
14
91
@Waterplea
Alex Inkin
1 year
#AngularTip for the day! Want to be able to declaratively control inputs/public properties of `hostDirectives` from your components? With signals it is possible with a simple wrapper, check it out: https://t.co/rHBbX3Il84
0
9
61
@Waterplea
Alex Inkin
2 years
#AngularTip for the day! With `display: contents` you can plug your components where it would otherwise cause invalid layout, like inside of tables: https://t.co/nI2tfjUccS
3
4
47
@Waterplea
Alex Inkin
7 months
#AngularTip for the day! Need to know when an input value is changed programmatically? Combine some black magic of prototype patching with CustomEvent: https://t.co/3PCIU8RNCc
3
6
76
@Waterplea
Alex Inkin
1 year
#AngularTip of the day! Let's do one last thing, while we're at it β€” you can listen to host directives outputs as signals in your #Angular components with this simple helper. Check it out: https://t.co/hTPM7HFHhY For more context, take a look at my previous tweet πŸ˜‰
1
4
38
@shhdharmen
Dharmen Shah 😎
5 months
Did you know? In @angular, to get static attribute value, you can use HostAttributeToken class! #Angular #AngularTip #WebDev
4
15
88
@vishwaSayambar
Vishwajit Sayambar
2 years
That's all for now, stay tuned for more updates😍 I hope this helps! Happy coding! πŸ”” Follow @vishwaSayambar For: 🌐 Web Development content #100DaysOfCode #learning #Angular #100daysofcodechallenge #angular #angulardeveloper #learner #tips #react #angulartip
0
0
4
@Waterplea
Alex Inkin
5 months
#AngularTip for the day! Are you sad to see MARQUEE tag deprecated? With a few lines of #CSS and literally one line of #JavaScript you can make a running text smooth as butter: https://t.co/Dl1RFCkzov
3
7
58
@shhdharmen
Dharmen Shah 😎
5 months
Fix your control-flow syntax formatting in @angular html templates using @PrettierCode #Angular #AngularTip #WebDev
2
10
87
@shhdharmen
Dharmen Shah 😎
5 months
Did you know? In @angular, you can use viewChild() to access any provider defined in the child component tree. Take a look at below example: #AngularTip #WebDev #Angular #LearnAngular
3
6
45
@sSaXxZz
srichardson23
3 years
When working with Angular, remember to leverage the power of observables for asynchronous operations like HTTP requests. Use operators like switchMap, catchError, and tap to handle and transform the data effectively. Happy coding! #AngularTip #rxjs #AsynchronousProgramming
0
0
1