angularjs 썸네일형 리스트형 [angularjs] 하위 directive에 함수 호출하기 아래 샘플코드 참조핵심은 디렉티브에서 scope.$parent.함수 를 만들어서 사용하는것! how to call child directive function? See the Pen NPJqOB by homin ahn (@beans9) on CodePen. 더보기 npm install -g yo 설치시 에러 대처방법 npm ERR! peerinvalid The package generator-karma does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer generator-angular@0.2.2 wants generator-karma@~0.2.0 npm ERR! System Windows_NT 6.2.9200 npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "generator-angular" npm ERR! cwd C:\.. 더보기 [angularjs] filter된 array 사이즈 알아내기 아래와 같이 array를 filter할 경우 그 length를 가져오는 예제이다filter한 내용을 새로 변수를 선언해서 넣어주는게 포인트이다. 12345678910111213141516171819202122 Filter: Add sth to the list minus sth from the list {{item}} Filtered list has {{filtered.length}} items Colored by Color Scriptercs 데모See the Pen angularjs filter length by homin ahn (@beans9) on CodePen. // 필터된 데이터 길이 구하기 더보기 이전 1 다음