• Stars
    star
    363
  • Rank 117,374 (Top 3 %)
  • Language
  • License
    MIT License
  • Created over 9 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An AngularJS exam with questions from beginner to expert by @gdi2290 from @AngularClass

Angular 2 Fundamentals

ngExam

An AngularJS 1.x exam from beginner to expert created by @gdi2290

  • What's MVC architecture?
  • What's MVVM architecture?
  • What's two way binding?
  • What's ng-model?
  • What is $http?
  • What is ng-repeat?
  • What are $index, $even, $odd, $first, and $last?
  • How would you filter a list via ng-repeat?
  • What's the difference between angular.module('app' , []) and angular.module('app')
  • What are directives (briefly)?
  • Why would you use ng-submit instead of ng-click in some cases?
  • What's Dependency Injection?
  • Do other frameworks use dependency injection (even if only for internal use)? Answer: yes (React,Ember)
  • How would you inject services and what are the different ways to do so?
  • What's jqLite?
  • How do you ensure Angular uses jQuery when including them both?
  • What are promises and how would you use them?
  • What's the difference between factory/provider/service/value/constant?
  • When would you use each one?
  • What are filters?
  • Why would you use ng-src, ng-bind, and ng-cloak?
  • What's the difference between ng-if and ng-show?
  • What phases are there in angular? Answer: config -> bootstrap -> run
  • Why would you use .config() and .run() phase?
  • What is ng-app and how does angular bootstrap?
  • When would you use $q.all()?
  • Where would you make your network calls controller, template, directive, or service and why? (where would you use $http)
  • 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
  • How would you dynamically filter a list with an ng-repeat? (clicking on different filters)
  • What's ng-messages and ng-message?
  • What's ng-style and ng-class?
  • How would you attach something to the header of every http call?
  • What is $scope.$on() and how would you use it?
  • What are $http interceptors?
  • What is "$locationChangeStart"?
  • What's html5Mode?
  • How do you turn off cache for a $http call?
  • What is the $templateCache?
  • How would you implement auth as in locking down certain parts of the app?
  • What's ui-router and why use it over ng-route?
  • What are states?
  • How do you resolve resources via state/route and how would you do so?
  • 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?
  • What types of directives are there? Angular: element, attribute, class (no one uses class)
  • What is $scope?
  • What is $rootScope?
  • What is "$destroy"?
  • What's one time binding?
  • When and where would you normally use .$watch()?
  • What's a stateful filter vs a stateless filter?
  • What are .$dirty, .$pristine, .$valid, .$invalid, and .$submitted?
  • What's NgModelController?
  • What's FormController?
  • What's ng-model-options and why would you use it?
  • What are $validators and $asyncValidators?
  • What's the difference between scope, $scope, and $rootScope?
  • What's the difference between controller and link directives?
  • How do you require a controller in a directive?
  • How do you require more than one controller in a directive?
  • What's an isolated scope?
  • For an isolate scope what are these symbols ?,@,=,&,* in relation to directives
  • What are compile/pre-link/post-link phase for directives?
  • What is $interpolate?
  • What is $compile?
  • What is $observe?
  • What's transclusion?
  • Why would you need transclusion?
  • What's bindToController: and controllerAs: syntax?
  • What are directives and what are components?
  • What's the difference between .$broadcast(), and .$emit()?
  • What are $timeout() and $interval() and how do you cancel them?
  • What's dirty checking?
  • Do other frameworks use dirty checking? Answer: yes (React,Polymer)
  • What is the .$digest() loop?
  • What's the difference between .$digest() and .$apply()?
  • What are $watchGroup and $watchCollection?
  • What are $eval, $parse and $evalAsync?
  • What is $applyAsync?
  • What's a decorator in relation to angular's module system?
  • How would you filter a large list with ng-repeat to include data from the server and client?
  • How would you grab the $injector/$scope from the chrome console?
  • Why is there ng-form?
  • How would you dynamically create forms?
  • What's CSP and how does it relate to angular?
  • How do you structure your files for a large team/project?
  • How would you use a module loader/bundler such as browserify, webpack, or systemjs with angular?
  • How would you asynchronously load angular?
  • How would you inject server rendered data into client angular?
  • What's a document fragment?
  • What's the ShadowDOM?
  • What is needed for your angular web app to work with JavaScript disabled?
  • What is needed for your angular web app to be rendered on the server to be sent down to the client?
  • Generally speaking how would you paraphrase angular?
  • How would you progressively enhance your RESTful app with a pub/sub?
  • How would you structure your app if you only had a realtime (pub/sub) API (no REST)?
  • What are the different ways to architect your angular app?
  • What are the pros and cons of each design?
  • What are some anti patterns developers tend to fall into while using angular?
  • What are the problems currently facing angular1?
  • Explain how Angular 2 is solving all of the problems from 1.x
  • Demonstrate a few ways to migrate an Angular 1 app to Angular 2
  • What's the difference between MVC, MVVM, MVP(SC), MVP(PV), PM, and how does it compare to Flux/Redux architecture?
  • How are dependencies handled when testing Angualar controllers and services?
  • How is $scope injected when testing Angular controllers?
  • What is the purpose of wrapping core Angular providers and services in double underscores? ex: _$rootScope_?
  • Describe the necessary steps to test the Angular $http service
  • How would you test an $http request to a third party API such as Youtube?
  • How would you test the data being returned from the API request?
  • What frameworks, languages and tools are available for testing in Angular?
  • How is $scope used when testing Angular controlers?
  • Explain what $httpBackend and $httpBackend.flush are used for
  • Explain what angular.mock is used for

enjoy β€” AngularClass



AngularClass ##AngularClass

Learn AngularJS, Angular 2, and Modern Web Development form the best. Looking for corporate Angular training, want to host us, or Angular consulting? [email protected]

More Repositories

1

PatrickJS-starter

MFE Starter
JavaScript
10,326
star
2

awesome-angular

πŸ“„ A curated list of awesome Angular resources
HTML
9,505
star
3

NG6-starter

πŸ†– An AngularJS Starter repo for AngularJS + ES6 + Webpack
JavaScript
1,906
star
4

angular-websocket

↖️ The missing Angular WebSocket module for connecting client applications to servers by @AngularClass
JavaScript
1,222
star
5

angular-hmr

πŸ”₯ Angular Hot Module Replacement for Hot Module Reloading
TypeScript
504
star
6

Reddit-Insight

Reddit Analytics built in Angular.js
JavaScript
142
star
7

NG6-todomvc-starter

Basic example of TodoMVC application written with angular and with use of components
JavaScript
138
star
8

angular-md5

md5 for Angular.js and Gravatar filter
JavaScript
133
star
9

angular-idle-preload

πŸ”œ Angular Idle Preload for preloading async routes via @TipeIO
TypeScript
99
star
10

angular-intercom

An Angular.js wrapper for Intercom.io providing a simple and familiar API for Angular Developer.
HTML
89
star
11

angular-raven

A Raven.js / Sentry wrapper for Angular.js
JavaScript
89
star
12

redis-dataloader

Batching and Caching layer using Redis as the Caching layer
JavaScript
86
star
13

node-everything

npm install everything. Please don't actually use this
82
star
14

awesome-cursorrules

πŸ“„ A curated list of awesome .cursorrules files
59
star
15

ng-vegas-angular2-d3

Angular 2, d3, and TypeScript
JavaScript
53
star
16

angular-momentjs

Moment.js with Angular
JavaScript
46
star
17

angular-password

The most performant AngularJS directive for matching two password input fields
JavaScript
45
star
18

data-structures

Data Structures in Javascript, Ruby, and Coffeescript
JavaScript
43
star
19

angular2do

TodoMVC: React setState/Immutable data pattern done in Angular2
HTML
39
star
20

koa-angular-seed

An Angular.js seed for Koa apps with gulp, stylus, and browserify
JavaScript
36
star
21

list-of-morphic-javascript

Javascript Morphisms
36
star
22

angular-crypto

angular-crypto provides standard and secure cryptographic algorithms for Angular.js with support for: MD5, SHA-1, SHA-256, RC4, Rabbit, AES, DES, PBKDF2, HMAC, OFB, CFB, CTR, CBC, Base64
JavaScript
31
star
23

everyone-ssn-usa

releasing everyone's SSN and the hacks used to acquire them
JavaScript
22
star
24

es6-promise-loader

JavaScript
21
star
25

ng-conf-2016-universal-patterns

ng-conf 2016 universal patterns
TypeScript
21
star
26

ng4-universal-demo

TypeScript
21
star
27

ruby_calculator

The simplest form of a calculator made in Ruby 2.0.0
Ruby
20
star
28

core-js-webpack-plugin

core-js builder as a Webpack Plugin
JavaScript
15
star
29

es7-reflect-metadata

Webpack and Universal support for reflect-metadata refactored by @gdi2290
HTML
13
star
30

hackreactor-presentation-slides

my HackReactor presentation
JavaScript
12
star
31

request-idle-callback

requestIdleCallback for Angular
TypeScript
10
star
32

angular-off

Providing the method $off for $rootScope in Angular.js
JavaScript
9
star
33

play-angular2

[WIP] Universal Angular 2 server rendering with Scala Play Framework
JavaScript
9
star
34

angular2-webpack2-seed

angular2 webpack2 with tree-shaking and precompiler??
TypeScript
9
star
35

awesome-JAMstack

A collection of awesome JAMstack starters, workflows, articles, resources and shiny things.
9
star
36

angular-example-basic-form

An AngularJS example for a basic signup form example
JavaScript
9
star
37

angular-d3

d3 for Angular.js
JavaScript
8
star
38

angular-event-emitter

Event emitters for AngularJS
JavaScript
8
star
39

angular-keen.io

An Angular.js wrapper for Keen.io
JavaScript
8
star
40

angular-pokemon

Pokemon directive for Angular.js
JavaScript
8
star
41

generator-easy

An EASY stack generator, Express Angular Stylus Yeoman
CSS
7
star
42

angular-beforeunload

Angular.js service for onBeforeUnload
JavaScript
7
star
43

dokku-bower-gulp-build-plugin

dokku-bower-gulp-build is a plugin for dokku that runs bower install and gulp build in a post-release hook.
7
star
44

angular-cors

Fast CORs support for angular1
JavaScript
6
star
45

ngSanitize

angular-sanitize module without including angular.js for Backbone and other frameworks
JavaScript
6
star
46

angular2-falcor-starter

Angular 2 Universal FalcorJS starter kit by @AngularClass
TypeScript
6
star
47

bower-everything

bower install everything
JavaScript
6
star
48

simple-universal-starter

TypeScript
5
star
49

read-this-Howard

Status: offline!
5
star
50

angular-groupon

An Angular.js wrapper for Groupon API
JavaScript
5
star
51

no-zone.js

No Zone.js allows you to use zone.js API without actually using it. (recommended for advanced use cases only)
JavaScript
5
star
52

angular-uuid-secure

Most secure uuid generator in for Angular.js
JavaScript
4
star
53

angular-balanced

An Angular.js adapter for Balanced.js
4
star
54

angular2-webpack

Webpack helpers for Angular 2 via @AngularClass
JavaScript
4
star
55

ng-click

Passive URL shortening for Angular.JS Docs
JavaScript
4
star
56

github-commit-messages

This chrome extension will show and hide scoped messages so its easier to read quickly
JavaScript
4
star
57

angular-facebook

An Angular.js wrapper for Facebook API
4
star
58

traceur-compiler-loader

Up to date Traceur Compiler loader for Webpack
JavaScript
4
star
59

ngx-loader

ngx-loader
JavaScript
4
star
60

angular2-amp

angular2-amp: nothing to see here
4
star
61

javascript-class-examples

Different examples of OOP "class" with "inheritance" done using JavaScript including languages that transpile into js. Take notice to the amount of boilerplate that's needed in ES5 compared to ES6. These examples all have the same interface with pros/cons for each pattern. If they seem similar that's whole point especially the difference between prototypal and pseudo-classical.
JavaScript
4
star
62

Data-Collaborator

Data visualizations unlock insights and initiate important conversations Our tool, Data Collaborator, enables people to create data visualizations about their Fitbit data, and collaborate with their friends and family, doctors and personal trainers about insights they have about these visualizations
JavaScript
4
star
63

promises

Promises/A+ implementation base on http://promises-aplus.github.io/promises-spec/
JavaScript
3
star
64

git-mv

Keep the git history of your git mv files after undo
Shell
3
star
65

angular-pubnub

A PubNub component for Angular.js
JavaScript
3
star
66

angular-webrtc

3
star
67

angular-algolia

wip
3
star
68

es7-tools

An aggregation of tooling for using ES7 today
3
star
69

angular-async

Async unwrap filters for Angular1 from Angular2 AsyncPipe
HTML
3
star
70

universal-lit-html

Universal Rendering support for lit-html by Polymer
JavaScript
3
star
71

ng2dist

AsyncPipe build of angular 2
JavaScript
3
star
72

angular2-server-rendering

(Initial prototype) Angular 2 Server Rendering
JavaScript
3
star
73

FrontendMasters-2015-02-13-React

React.js Workshop with Ryan Florence
JavaScript
3
star
74

HackerTweet

JavaScript Twitter clone project for HackReactor pre-work made in Rails 4.0.0.beta1 and jQuery
JavaScript
3
star
75

ie-shim

ie-shim for Angular 2
JavaScript
3
star
76

angular-flux

Flux Application Architecture for Angular.js allow AngularJS apps to have unidirectional data flow in a single direction, in a cycle
3
star
77

made-at-hackreactor

Made at HackReactor built in Rails 3.2.13, Backbone.js 1.0.0, Redis 2.6.13, Socket.io 0.9, Node.js 0.10.12
JavaScript
3
star
78

angular-free-style

An Angular.js module for free-style that is designed to make cross-browser style objects easier to work with in JavaScript
JavaScript
3
star
79

angular2-example-falcor

Angular2 + FalcorJS
JavaScript
3
star
80

systemjs-d3

SystemJS wrapper for d3.js
2
star
81

preload_cache.js

PreloadCache: preload_cache defers cache until after the app bootstraps by providing deferred refs. NOTE: In process of moving this repo to angular/universal
HTML
2
star
82

test-static-file

testing static files
HTML
2
star
83

angular2-example-iot

Angular 2 example for Internet of Things
JavaScript
2
star
84

angular-bluebird

An Angular.js wrapper around Bluebird's API as $promise
2
star
85

angular2-universal-cluster

node cluster for Angular 2 Universal
TypeScript
2
star
86

node-hammerjs

Node "support" for hammerjs
JavaScript
2
star
87

gulp-loopback-angular

Gulp plugin for auto-generating Angular $resource services for LoopBack
2
star
88

gdi2290.github.io

HTML
2
star
89

lower-case

Lowercase a string in JavaScript
JavaScript
2
star
90

test-repo_login-to-see-resolved-comment

testing public resolved comments
2
star
91

underbar

this is for learning javascript
JavaScript
2
star
92

angular-reddit

Reddit API for Angular.js
2
star
93

angular-olark

An Angular.js service for Olark a live chat service
2
star
94

PatrickJS

2
star
95

awesome-rx

Reactive Extensions (Rx) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators.
2
star
96

angular-alertify

JavaScript
2
star
97

is-iojs-production-ready-yet

is io.js production ready yet?
2
star
98

snake-case

Snake case a string in JavaScript
JavaScript
2
star
99

angular2-beta-to-rc-alias

Alias Angular 2 beta.17 3rd party modules to Angular 2 rc.3 modules
TypeScript
2
star
100

ng2for1

angular1 hacks for angular2 style coding
JavaScript
2
star