Follow the guidelines here: https://expressjs.com/en/starter/generator.html
- npx express-generator my-app
- cd my-app
- npm install
- npm start
Follow the guidelines here: https://expressjs.com/en/starter/generator.html
Disclaimer: I am writing this for my understanding and reference. Also provided the links on each topic what I referred to. Please refer them for complete details.
What are the differences between Angular and AngularJS?
https://stackify.com/angular-vs-angularjs-differences-between-angular-and-angularjs/
https://gorrion.io/blog/angularjs-vs-angular
"Angular JS, based on JavaScript, uses terms of scope and controllers while Angular uses a hierarchy of components. Angular is component-based while AngularJS uses directives."
What is the official site for Angular?
What do you need to know to work an Angular app?
HTML, CSS, JavaScript, TypeScript, knowledge of JavaScript classes, modules
Basic architecture concepts of an Angular app
How do you set up an Angular app to begin with?
https://angular.io/guide/setup-local
> npm i -g @angular/cli
> ng new angular-app
> cd angular-app
> ng serve --open (app opens up at http://localhost:4200/)
Explain the process of application launch/bootstrapping?
An Angular application launches by bootstrapping the root module which creates the components listed in the bootstrap array and inserts each one into the browser DOM.
https://angular.io/guide/bootstrapping
What are the key components in Angular?
Best tutorial to learn Angular?
https://angular.io/tutorial (Tour of Heroes app)
Initially I went through the fundamentals of Web Components here: https://www.webcomponents.org/introduction
Then I read about window.customElements.define here: https://developer.mozilla.org/en-US/docs/Web/API/Window/customElements
Then I went through the examples and the details given here: https://www.robinwieruch.de/web-components-tutorial.
Also, to make your hands dirty:
This is the best (short and sweet): https://www.youtube.com/watch?v=mTNdTcwK3MM
try Stencil and build a stop-watch (a library to build your web component project) : https://medium.com/@ahsan.ayaz/building-web-components-with-stencil-a3717787954a
Handling data with Web Components: https://itnext.io/handling-data-with-web-components-9e7e4a452e6e
Well, I ended up with some understanding after going through these articles. Happy coding 😊
Additional read: Thorough coverage on Stencil props, events, state: https://blog.logrocket.com/building-reusable-web-components-with-stencil-js/
Data binding example with NO stencil: https://medium.com/swlh/https-medium-com-drmoerkerke-data-binding-for-web-components-in-just-a-few-lines-of-code-33f0a46943b3
Though posted a while back, I tried the solution suggested by Johan Persson and I liked it:
// ES5 function sayHello (name) { return 'Hello ' + name } // ES6 const sayHello = (name) => 'Hello ' + name console.log(sayHello('Ramesh'))
var firstName = 'Ramesh'; // ES5 let firstName = 'Ramesh' // ES6 - have block scope const firstName = 'Ramesh' // ES6 - as it says, it's a constant
let strWelcome = 'Welcome'
// use the backticks to combine strings with variableslet templateString = `${strWelcome} Ramesh` console.log(templateString)
let myArray = [1,2,3] Math.max(...myArray)
data Student; input studentnum $ quarter math science english; datalines; 1001 1 70 80 76 1001 2 80 80 78 1001 3 90 85 80 ; run;
data Student_1; set Student end=eof; output; if eof then do; studentnum = '1001'; quarter = 4; math = 88; science = 90; english = 88; output; end; run;
data Student_marks_total; set Student_1; total = math + science + english; run;
data Student_marks_avg; set Student_marks_total end=eof; drop sum_math sum_science sum_english sum_total; retain sum_math sum_science sum_english sum_total 0; sum_math = sum_math + math; sum_science = sum_science + science; sum_english = sum_english + english; sum_total = sum_total + total; output; if eof then do; studentnum = 'avg'; quarter = .; math = sum_math / 4; science = sum_science / 4; english = sum_english / 4; total = sum_total / 4; output; end; run;
proc sort data=student_1 out=student_1_sort_by_quarter; by descending quarter; run;
data Sales; input empno empname $; datalines; 1001 Daniel 1002 Peter ; run; data Delivery; input empno empname $; datalines; 1003 Simon 1004 Chris ; run; data Marketing; set Sales Delivery; run;
data student_arts; input studentnum english spanish latin; datalines; 1001 80 70 78 ; run; data student_groups; input studentnum math science history; datalines; 1001 88 78 89 ; run; data student_arts_and_groups; merge student_arts student_groups; by studentnum; run;
data blah; firstname = 'Sean'; lastname = 'Connery'; run;
data blah; firstname = 'Sean'; lastname = 'Connery'; output; firstname = 'Matt'; lastname = 'Damon'; output; run;
data Student; input studentnum $ math science english; datalines; 1001 40 50 46 1002 60 60 68 1003 90 85 80 1004 10 20 23 ; run; data Student_grading; set Student; average = (math + science + english) / 3; average = Round(average, 0.01); length grading $ 12; if average > 35 and average <= 50 then grading = 'ordinary'; else if average > 50 and average <= 60 then grading = 'second'; else if average > 60 and average <= 70 then grading = 'first'; else if average > 70 then grading = 'distinction'; else grading = 'failed'; run;
data student; input studentnum marks; datalines; 1001 49 1002 89 1003 34 1004 89 ; run; data student_report; set student; if marks > 50 then do; result = 'pass'; comments = 'eligible to go to next level'; end; else do; result = 'fail'; comments = 'not eligible to next level'; end; run;
data report_card; set student_grading indsname=name; tablename=scan(name,2); run;
proc sql; create table student_temp as select * from student; quit;
data sum_1_to_5; sum = 0; do i = 1 to 5; sum = sum + i; end; drop i; run;
data level_the_brothers; nik_money = 10; vik_money = 16; do while (nik_money < vik_money); nik_money = nik_money + 1; end; final_nik_money = nik_money; final_vik_money = vik_money; drop nik_money vik_money; run;
data level_the_brothers; nik_money = 10; vik_money = 16; do until (nik_money = vik_money); nik_money = nik_money + 1; end; final_nik_money = nik_money; final_vik_money = vik_money; drop nik_money vik_money; run;
data array_example; input studentnum s1 s2 s3 s4 s5 s6; array s(6) s1-s6; /* Hint - array element names match column names */ marks_total = sum(of s(*)); marks_avg = round(mean(of s(*)), 0.01); datalines; 1001 78 56 45 34 75 65 1002 56 67 78 89 45 34 ; run;