내가 좋아할 만한 콘텐츠
Interested in learning @reactjs? Check out ReactWeek.com. A week long workshop focused on learning React taught by @ryanflorence.
With the exception of isolate scopes, all scopes are created with prototypal inheritance, meaning they have access to their parent scopes.
My blog post on the differences between Factories, Services, and Providers in AngularJS. goo.gl/NozeGf
The link function is invoked AFTER the compiled template, so do DOM manipulation, event listeners, and data change 'watchers' here.
In Angular, the default headers sent for every request live in in the $httpProvider.defaults.headers.common object. #angularjs
Although tempting, try to not use $watch in a controller. It makes it difficult to test. #angularjs
The "then" method returns a new promise after the initial promise is resolved. This gives you the ability to chain your promises #angularjs
Because directives can require the controller of another directive, ctrls are a great place to put actions used in more than 1 directive.
The main use case for Isolate Scopes are for reusable widgets that can be shared & used in unexpected contexts wo/ polluting other scopes.
When you handle an event manually, use a 3rd party framework, or call setTimeout, you'll want to use $apply to rerun the digest loop.
In AngularJS, after a template has been fetched (using AJAX), Angular caches it in the $templateCache service.
Dirty checking checks whether a value has changed that hasn't yet been synchronized across the application. #angularjs #javascript
With a directive use an Ele. if you encapsulate a self-contained piece of functionality. Use an Attr when decorating existing element.
The $evalAsync method is a way to schedule running expressions on the current scope at some time in the future.
A directive is just a function that can run on a particular DOM element. The function is expected to provide extra functionality on an elem.
$scope.$apply() is a way to gain access to the Angular context from outside of it. #angularjs #JavaScript
United States 트렌드
- 1. #DWTS 37.3K posts
- 2. Virginia 453K posts
- 3. New York 833K posts
- 4. Sixers 12K posts
- 5. Bulls 31.2K posts
- 6. Mamdani 1.05M posts
- 7. Maxey 7,486 posts
- 8. Jay Jones 84K posts
- 9. Andy 62.1K posts
- 10. #Election2025 13.6K posts
- 11. Cuomo 365K posts
- 12. Josh Giddey 4,230 posts
- 13. Louisville 123K posts
- 14. Whitney 10.8K posts
- 15. Alix 7,036 posts
- 16. #SeeRed 2,868 posts
- 17. RIP NYC 10.8K posts
- 18. Danielle 9,308 posts
- 19. WOKE IS BACK 20.5K posts
- 20. ELAINE 62.3K posts
Something went wrong.
Something went wrong.