fetis / 30-seconds-of-angular Goto Github PK
View Code? Open in Web Editor NEWCurated collection of Angular snippets that you can understand in 30 seconds or less
Home Page: https://30.codelab.fun
License: Creative Commons Zero v1.0 Universal
Curated collection of Angular snippets that you can understand in 30 seconds or less
Home Page: https://30.codelab.fun
License: Creative Commons Zero v1.0 Universal
Is it even a good idea?
[ ] site dark theme
[ ] playground
[ ] form
make it nice 🦄 🌈 ✨
trackBy
принимает на вход hash
функцию, соответственно можно написать любую свою. В самом простом понимании, мы просто возвращаем уже готовый примитив из объекта.
Если надо по нескольким полям, то делаем простую вещь:
— берем все необходимые поля
— конкатенируем
trackBy(index: number, animal: Animal): string {
return [ animal.name, animal.type, … ].join('🦊');
}
Think about way to specify external libs. Maybe with unpkg.com?
Look at
https://github.com/30-seconds/30-seconds-of-react
https://github.com/30-seconds/30-seconds-of-code
Files we'd potentially want:
CODE_OF_CONDUCT.md Updated for transfer to org 6 months ago
COLLABORATING.md Updated for transfer to org 6 months ago
CONTRIBUTING.md Update CONTRIBUTING.md 24 days ago
LICENSE
статистику добавить в футер. типа
100 сниппетов
66 тегов
12 авторов
readonly yo = new FormControl();
@output() readonly change = this.yo.valueChanges;
сниппета с ngTemplateOutlet
так ведь по идее можно переиспользовать куски кода в шаблоне
beginners level, but I always forget details about how to make it
fb.array([
fb.group({ firstName: 'foo', lastName: null }),
fb.group({ firstName: 'x', lastName: 'y' }),
])
fetis26 to my snippets
replace chrome-like address bar with a custom one. it should be still clear that this's address. address should be read-only
show loader while playground initializing.
and add for CI
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.