GitShow/kentcdodds/kcd-angular
kentcdodds

kcd-angular

A repo for all of my useful Angular stuff

by kentcdodds
Star on GitHubForkWebsitenpm

JavaScript

28 stars5 forks6 contributorsQuiet · 5y agoSince 2014MIT

Meet the team

See all 6 on GitHub →
jdart
jdart2 contributions
rmsint
rmsint2 contributions
kasperlewau
kasperlewau1 contribution

Languages

View on GitHub →
JavaScript43.4%
HTML40.4%
CSS10.8%
Pug3%
Stylus2.4%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
42
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
kasperlewau
feat(kcd-recompile): watch deeply if the expression is an objectMergedPR

Setup a deep if the given expression to references an . Lacking changes in Docs/Tests(_well..._) for this addition, so it may need some revision. Closes #2

kasperlewau · 9y ago
devonsams
kcd-recompile: child component scopes not destroyed on recompileClosedIssue

Oops, just added this to your gist, but then noticed your other comment mentioning you don't get notifications for comments on gists. Came across an interesting issue. I'm still debugging, but it appears that child component scopes are never destroyed when I do a recompile using this directive. Say I have the following: After I set in the parent component controller and I see the ng-repeat recompile, if I check the scope tree in batarang, I can see all of the old custom-component scopes still hanging out there, and they continue to stack up each time I recompile. I tried adding in my custom-component, and I added a console.log to the $onDestroy hook, and I can see that $onDestroy fires, but it seems like the scope is being recreated or something because the logs continue to compound after each reload. Any ideas?

devonsams · 9y ago
mica16
kcd-recompile / Watching nested propertiesClosedIssue

Hi, First, thanks for the great directive . I noticed that it's no possible to watch for nested properties in the current directive. For instance, let's suppose in the controlleur: In HTML I would have (inside an ng-repeat="persons"): However, as a nested property, recompilation would not happen if I do: The fix that I did is to add the argument "true" to the watch made by the directive like so: Is it possible to merge it in the current directive? Or better: adding it as an option: What do you think? Thanks.

mica16 · 9y ago
Structured data for AI agents

Repository: kentcdodds/kcd-angular. Description: A repo for all of my useful Angular stuff Stars: 28, Forks: 5. Primary language: JavaScript. Languages: JavaScript (43.4%), HTML (40.4%), CSS (10.8%), Pug (3%), Stylus (2.4%). License: MIT. Homepage: http://kentcdodds.com/kcd-angular Open PRs: 0, open issues: 0. Last activity: 5y ago. Community health: 42%. Top contributors: jdart, rmsint, kasperlewau.

·@ofershap

Replace github.com with gitshow.dev