-
1
Have you used slots and props?Times asked 2Official solution
SimpleSlots = dabbe ke andar parent apna HTML daal de. Props data, slots markup.
Default slot, named slots. App.vue router-view layout jaisa outlet.
Agar nahi use kiya: 'layout router-view se kiya' valid.
Component = reusable UI block (Navbar, Card). Props parent→child data, emit child→parent event. Slots parent HTML inner content.
computed cache + reactive derive (filtered list). watch side-effect (query change pe API). methods events. ref() primitive, reactive() object. Vuex/Pinia global store; localStorage persist, store nahi.
SFC: template + script + style ek
.vuefile. Parent-child exam favourite: list parent, row child:item+@delete.Example
<div class="card"><slot>Default</slot></div> <Card><p>Custom body</p></Card>Project example: Card.vue <slot>Default</slot>. Parent custom body.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
2
Jsonify VS marshalTimes asked 1Official solution
Simplejsonify Python dict/list ko JSON response + proper Content-Type deta hai.
Example
return jsonify(message='ok', count=3), 200Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
3
Used any derivative and show, why used it?Times asked 2Official solution
SimpleVue directive = special attr: v-if, v-for, v-model, v-bind, v-show — DOM ko declarative control.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
4
What is decorator and how it differs from a function.Times asked 2Official solution
Simplelogin_required jaisa decorator protected routes pe: session nahi to login redirect.
Example
def login_required(fn): @wraps(fn) def wrapper(*a, **k): if 'user_id' not in session: return redirect(url_for('auth.login')) return fn(*a, **k) return wrapperCommunity answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
5
He mainly focused on code changes and asked theoretical questions mentioned in this gsheet.Times asked 2Official solution
SimpleViva wrap-up hai. Short thanks + confirm submission ZIP latest hai.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet