{"id":15627431,"url":"https://github.com/patrickjs/ngexam","last_synced_at":"2025-04-07T19:16:48.397Z","repository":{"id":28135831,"uuid":"31635257","full_name":"PatrickJS/ngExam","owner":"PatrickJS","description":"An AngularJS exam with questions from beginner to expert by @gdi2290 from @AngularClass","archived":false,"fork":false,"pushed_at":"2016-07-29T06:19:43.000Z","size":38,"stargazers_count":357,"open_issues_count":4,"forks_count":57,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-03-29T17:42:23.033Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PatrickJS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-04T03:09:07.000Z","updated_at":"2024-11-26T18:20:25.000Z","dependencies_parsed_at":"2022-09-16T05:52:19.408Z","dependency_job_id":null,"html_url":"https://github.com/PatrickJS/ngExam","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2FngExam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2FngExam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2FngExam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2FngExam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PatrickJS","download_url":"https://codeload.github.com/PatrickJS/ngExam/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247713258,"owners_count":20983683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T10:16:54.548Z","updated_at":"2025-04-07T19:16:48.372Z","avatar_url":"https://github.com/PatrickJS.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://courses.angularclass.com/courses/angular-2-fundamentals\" target=\"_blank\"\u003e\n    \u003cimg width=\"438\" alt=\"Angular 2 Fundamentals\" src=\"https://cloud.githubusercontent.com/assets/1016365/17200649/085798c6-543c-11e6-8ad0-2484f0641624.png\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# ngExam\n\u003e An AngularJS 1.x exam from beginner to expert created by [@gdi2290](https://twitter.com/gdi2290)\n\n\n* What's MVC architecture? \n* What's MVVM architecture?\n* What's two way binding?\n* What's ng-model?\n* What is `$http`?\n* What is ng-repeat?\n* What are `$index`, `$even`, `$odd`, `$first`, and `$last`?\n* How would you filter a list via ng-repeat?\n* What's the difference between `angular.module('app' , [])` and `angular.module('app')`\n* What are directives (briefly)? \n* Why would you use ng-submit instead of ng-click in some cases?\n* What's Dependency Injection?\n* Do other frameworks use dependency injection (even if only for internal use)? Answer: yes (React,Ember)\n* How would you inject services and what are the different ways to do so?\n* What's jqLite?\n* How do you ensure Angular uses jQuery when including them both?\n* What are promises and how would you use them?\n* What's the difference between factory/provider/service/value/constant?\n* When would you use each one?\n* What are filters?\n* Why would you use ng-src, ng-bind, and ng-cloak?\n* What's the difference between ng-if and ng-show?\n* What phases are there in angular? Answer: config -\u003e bootstrap -\u003e run\n* Why would you use `.config()` and `.run()` phase?\n* What is ng-app and how does angular bootstrap?\n* When would you use `$q.all()`?\n* Where would you make your network calls controller, template, directive, or service and why? (where would you use $http)\n* Say that you are going to alert an error where would you put that alert from a network call? Service, controller, template and why? [Answer](https://gist.github.com/gdi2290/b9d34955f0d3bce2c1b6)\n* How would you dynamically filter a list with an ng-repeat? (clicking on different filters)\n* What's ng-messages and ng-message?\n* What's ng-style and ng-class?\n* How would you attach something to the header of every http call?\n* What is `$scope.$on()` and how would you use it?\n* What are `$http` interceptors?\n* What is `\"$locationChangeStart\"`?\n* What's html5Mode?\n* How do you turn off cache for a `$http` call?\n* What is the `$templateCache`?\n* How would you implement auth as in locking down certain parts of the app? \n* What's ui-router and why use it over ng-route?\n* What are states?\n* How do you resolve resources via state/route and how would you do so?\n* Given 3 nested states, how would you load the most nested one after the root state resolves while allowing the middle state to load asynchronously?\n* What types of directives are there? Angular: element, attribute, class (no one uses class)\n* What is `$scope`?\n* What is `$rootScope`?\n* What is `\"$destroy\"`?\n* What's one time binding?\n* When and where would you normally use `.$watch()`?\n* What's a stateful filter vs a stateless filter?\n* What are `.$dirty`, `.$pristine`, `.$valid`, `.$invalid`, and `.$submitted`?\n* What's NgModelController? \n* What's FormController?\n* What's ng-model-options and why would you use it?\n* What are `$validators` and `$asyncValidators`?\n* What's the difference between `scope`, `$scope`, and `$rootScope`?\n* What's the difference between controller and link directives?\n* How do you require a controller in a directive?\n* How do you require more than one controller in a directive?\n* What's an isolated scope?\n* For an isolate scope what are these symbols `?`,`@`,`=`,`\u0026`,`*` in relation to directives\n* What are compile/pre-link/post-link phase for directives?\n* What is `$interpolate`?\n* What is `$compile`?\n* What is `$observe`?\n* What's transclusion?\n* Why would you need transclusion?\n* What's `bindToController:` and `controllerAs:` syntax? \n* What are directives and what are components?\n* What's the difference between `.$broadcast()`, and `.$emit()`?\n* What are `$timeout()` and `$interval()` and how do you cancel them?\n* What's dirty checking?\n* Do other frameworks use dirty checking? Answer: yes (React,Polymer)\n* What is the `.$digest()` loop?\n* What's the difference between `.$digest()` and `.$apply()`?\n* What are `$watchGroup` and `$watchCollection`?\n* What are `$eval`, `$parse` and `$evalAsync`?\n* What is `$applyAsync`?\n* What's a decorator in relation to angular's module system?\n* How would you filter a large list with ng-repeat to include data from the server and client?\n* How would you grab the `$injector`/`$scope` from the chrome console?\n* Why is there ng-form?\n* How would you dynamically create forms?\n* What's CSP and how does it relate to angular?\n* How do you structure your files for a large team/project?\n* How would you use a module loader/bundler such as browserify, webpack, or systemjs with angular?\n* How would you asynchronously load angular?\n* How would you inject server rendered data into client angular?\n* What's a document fragment?\n* What's the ShadowDOM?\n* What is needed for your angular web app to work with JavaScript disabled?\n* What is needed for your angular web app to be rendered on the server to be sent down to the client?\n* Generally speaking how would you paraphrase angular?\n* How would you progressively enhance your RESTful app with a pub/sub?\n* How would you structure your app if you only had a realtime (pub/sub) API (no REST)?\n* What are the different ways to architect your angular app?\n* What are the pros and cons of each design?\n* What are some anti patterns developers tend to fall into while using angular?\n* What are the problems currently facing angular1?\n* Explain how Angular 2 is solving all of the problems from 1.x\n* Demonstrate a few ways to migrate an Angular 1 app to Angular 2\n* What's the difference between MVC, MVVM, MVP(SC), MVP(PV), PM, and how does it compare to Flux/Redux architecture?\n* How are dependencies handled when testing Angualar controllers and services?\n* How is `$scope` injected when testing Angular controllers?\n* What is the purpose of wrapping core Angular providers and services in double underscores? ex: `_$rootScope_`?\n* Describe the necessary steps to test the Angular `$http` service\n* How would you test an `$http` request to a third party API such as Youtube?\n* How would you test the data being returned from the API request?\n* What frameworks, languages and tools are available for testing in Angular?\n* How is $scope used when testing Angular controlers?\n* Explain what `$httpBackend` and `$httpBackend.flush` are used for\n* Explain what `angular.mock` is used for\n\n___\n\nenjoy — **AngularClass** \n\n\u003cbr\u003e\u003cbr\u003e\n\n[![AngularClass](https://cloud.githubusercontent.com/assets/1016365/9863770/cb0620fc-5af7-11e5-89df-d4b0b2cdfc43.png  \"Angular Class\")](https://angularclass.com)\n##[AngularClass](https://angularclass.com)\n\u003e Learn AngularJS, Angular 2, and Modern Web Development form the best.\n\u003e Looking for corporate Angular training, want to host us, or Angular consulting? scott@angularclass.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickjs%2Fngexam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickjs%2Fngexam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickjs%2Fngexam/lists"}