Tagged articles

Directives

8 articles · Page 1 of 1
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jul 1, 2025 · Frontend Development

How We Rebuilt a Fault‑Tolerant Vue Permission System After Three Failed Attempts

After three successive permission‑system failures caused mismatched UI, fragmented checks, and tightly coupled logic, we rebuilt the Vue.js permission architecture using a unified API, a TypeScript‑typed hook, and an optional v‑permission directive, achieving maintainable, debuggable, and easily extensible access control across pages, buttons, and fields.

DirectivesFrontend ArchitectureHooks
0 likes · 7 min read
How We Rebuilt a Fault‑Tolerant Vue Permission System After Three Failed Attempts
Shepherd Advanced Notes
Shepherd Advanced Notes
Apr 3, 2024 · Frontend Development

Vue Template Syntax: Interpolation and Directives Explained

This article explains Vue.js template syntax, covering how interpolation with double curly braces inserts data, the role of directives like v-bind, v-model, and v-on, shorthand notations, event modifiers, and the use of dynamic arguments introduced in Vue 2.6.0, all illustrated with concrete code examples.

DirectivesDynamic ArgumentsInterpolation
0 likes · 12 min read
Vue Template Syntax: Interpolation and Directives Explained
360 Tech Engineering
360 Tech Engineering
Nov 8, 2019 · Fundamentals

Function Implementation Hiding Proposal: Goals, Directives, and Alternative Approaches

This article reviews the TC39 function‑implementation‑hiding proposal, explains the new hide‑source and sensitive directives that can conceal Function.prototype.toString and Error.stack details, evaluates their benefits and drawbacks, compares alternative hiding mechanisms, and answers common questions about the specification.

DirectivesError.stackFunction.prototype.toString
0 likes · 13 min read
Function Implementation Hiding Proposal: Goals, Directives, and Alternative Approaches