Nuxt Get Query Params

To crack JEE Main, you need to prepare the smart way rather than the hard way. I assumed that "using jquery" means that you actually use jquery to get the query parameters. The parameter is an integer that specifies where the substring starts and can be of BIGINT data type. New in version 2. Routing and Route Protection in Server-Rendered Vue Apps Using Nuxt. Create two report parameters named as @StartDate and @EndDate. The query_class parameter was added, to allow customisation of the query class, in place of the default of BaseQuery. Next in the REST Service hierarchy is the GET Method we defined for the resource (which is highlighted in the screenshot above). Both apply from SQL Server 2005 Service Pack 4 onward (and slightly earlier if you are willing to apply cumulative updates to Service Pack 3). The only requirement for this query is to return exactly one row with exactly two columns. NET and own the title of King of Micro ORM in terms of speed and is virtually as fast as using a raw ADO. batchGetItem(). net mvc routing module is responsible for mapping incoming browser requests to particular mvc controller actions. Vous voudriez peut-être récupérer des données et faire leur rendu côté serveur. May be an array or object containing properties. nuxt-module-auth0. Angular URLSearchParams class is used to create URL parameters. Nuxt Routing Question Mark Parameters Query Parameters DWQA Questions › Category: Program › Nuxt Routing Question Mark Parameters Query Parameters 0 Vote Up Vote Down. Hello I don´t know the best method to pass parameters by url but hidden, I know: By session, it´s consume a lot of RAM By cokkies it will slow the system with iframe not know exactly. How to get query parameters in a rest controller in a GET request? This should probably be a one-liner, but I am not used to Spring or SpringBoot, and so I'm having troubles. Watch query strings and execute component methods on change (asyncData, fetch, validate, layout, ) Type: Boolean or Array or Function (default: []) Use the watchQuery key to set up a watcher for query strings. js web application using a router and URL parameters as well as query parameters. It renders as an tag with correct href by default, but can be configured with the tag prop. For example, Type the list of values of any data type in the advanced editor window. Loaders can be synchronous or asynchronous. js and i don't know how to get it in about. js community when it comes to dealing with SSR applications & Vue. I tried using NameValueCollection qscoll = HttpUtility. Can be a function created by ''jQuery. In case a jQuery object is passed, it should contain input elements with name/value properties. The queryParamsMap is a Observable that contains a map of the query parameters available to the. Power Query is the best thing to happen to Excel since Tables were introduced in Excel 2007 **Updated May 2018** When developing Power Query solutions for others to use, or when needing parameters that can be changed easily (e. Executes a RelationshipQuery against an ArcGIS Server map layer (or table). Name the table Parameters, this is how we will reference the table in our power query. In addition, if you don’t pass parameter manually, you could choose multiple parameter values in parameter list. js and can do everything that’s possible there. The latest Spring Data JPA M1 release of the Evans. This parameter is used to query data or a database for a given. The parameter input is an array of cluster (Name, Data Type, Direction, Initial Value) where each array element represents a column or field in the database table. URL parameters (also called query string parameters or URL variables) can have lots of useful data including product info, user preferences, link referrals, and more. URL can pass along parameters in the form of query string. Related articles: What is URL parameter? How to forward query parameters to the destination URL (landing page) How to add parameters (IDs) to my tracking links. For the GET and QUERY functions, you can omit the -f parameter and specify the -G parameter to search a specific application group. The object instantiated must be in the same package as the Mojo itself. In my example it is the value for "SickLeaveHours". 48 Comments. The same way there is no concensus over how objects should be represented in query parameters, there is no standardized way to format arrays of values in query parameters. The intended usage of this is where using a QuerySolutionMap as initial bindings is either inappropriate or not possible e. If not provided, neighbors of each indexed point are returned. Now I will work on the second page where the jQuery code is needed to be applied to get the data using a query string. Emerhub provides market entry services such as company registration, tax, licensing in Indonesia, Bali, the Philippines and Vietnam. SharePoint: Adventures with the REST API Part 1 Posted on March 14, 2013 January 24, 2014 Author Phil Harding Categories Sharepoint, SharePoint 2013 Tags 2010, 2013, client, JSON, rest, Sharepoint, Xml. Default is 20, max is 100. In addition to the list-type parameter that indicates version 2 of the API, the request also specifies additional parameters to retrieve up to three keys in the quotes bucket that start with E and occur lexicographically after ExampleGuide. Session resolution: The request hits the gateway which resolves the authorization key (if any) and adds the user-id and role headers and then proxies the request to the data service. Note: The sort_column parameter can be used to sort the list of Pages by the descriptor of any field in the wp_post table of the WordPress database. Extract the Required Data for a Random Date. The jQuery get() and post() methods are used to request data from the server with an HTTP GET or POST request. One thing to note when using routes with params is that when the user navigates from /user/foo to /user/bar, the same component instance will be reused. You can query the table by using the get-item API. Server-side keys. Click on the OK button. In this article I'm going to present how to get a URL parameter with JavaScript. Jquery get query params keyword after analyzing the system lists the list of keywords related and the list of websites with related content, in addition you can see which keywords most interested customers on the this website. If the 2nd parameter to sqlite3_exec() is a NULL pointer, a pointer to an empty string, or a pointer that contains only whitespace and/or SQL comments, then no SQL statements are evaluated and the database is not changed. 默认情况下,query的改变不会调用asyncData方法。. Here I'll describe how RESTful web services receive parameters, so you can better undestand how to send them from your application. Parameter sniffing can be disabled using the documented and supported trace flag 4136. Hooks and configuration for progressive increases in complexity. The Identity parameter specifies the Active Directory user to get. Query Parameters. It also describes the syntax and features supported by the main query parsers included with Solr and describes some other parsers that may be useful for particular situations. From looking at the details in Developer tools, the parameters are available in the Form data. This function get no parameters and returns the text "sample function without parameter". Server-side keys. That is all there is to using the passthru parameter. Query parameters. @PrimozRome When I first came across this problem, I thought the same. The format of this tuple is: url-path-pattern_, handler-class. As we saw in the previous section, we can customize our Yelp Search by modifying the GET parameters in the URL. SQL Query to Select All If Parameter is Empty or NULL Examples. I've seen multiple posts on this, but haven't been able to sort my problem out. Here's a quick introduction to crosstab queries. 2000P MARYLAND STATE QUARTER,Burberry Blue Suede & Hayward Check Foldover Shoulder Bag,2017 ELLIS ISLAND NJ P&D SET - AVAILABLE NOW. Parameter sniffing is expected behavior and is normally desirable. With care. Then we have the route property, which is an instance of vue-router, params and query if you want to get informations from the current url. The next example here has some inefficiencies but otherwise works well. They therefore can create a vector for attack via SQL injection. This question is available on Nuxt. The parameter input is an array of cluster (Name, Data Type, Direction, Initial Value) where each array element represents a column or field in the database table. I have the same dilemma - what's the best way to pass a json query object as a parameter. get method to send a get request to the GitHub API. The syntax is straightforward: Redash recognizes any string between double curly braces {{ }} as a Query Parameter. Sep 09, 2017 · If you log the parameters sent from the server on the get request, a blank value is output. -- end -- return to CentralOps. @PrimozRome When I first came across this problem, I thought the same. Query string in ASP. Valid Values URL-encoded header to return instead of the content-disposition of the underlying object. Positions({4, 5, 6. In the UpdatesDeployment. Indian cost vsi crusher Manufacturer Of Highend Mi. The GET request appends data to the end of the URL in the form of a list of field=value pair which is known as query string. Parameter types may be defined by scheme-specific semantics, but in most cases the syntax of a parameter is specific to the implementation of the URI's dereferencing algorithm. A Comparative Study of Multiplexing Schemes for Next. Keep up to date with technologies and trends in the Vue and Nuxt framework. To include Query String Request Parameters into our HTTP GET request we will need to use the queryParam(). I know how to access the code builder for this but I have no idea how to write the appropriate code. Create Dynamic Query Parameters in Power BI Desktop – Power BI Tips & Tricks #47 About this tutorial: Video duration: 9:11 Create Dynamic Query Parameters, filter your reports with them and create a template using Power BI. Database Schema Posts Id int PostTypeId tinyint AcceptedAnswerId int ParentId int CreationDate datetime DeletionDate datetime Score int ViewCount. js 停止渲染当前页面并显示错误页面} async validate({ params, query, store }) { // await operations return true // 如果参数有效 return false // 将停止Nuxt. When operating in local processing mode, ReportViewer does not prompt for parameter values. Here I'll describe how RESTful web services receive parameters, so you can better undestand how to send them from your application. The response of the Service is then further queried just as if its results were passed into a MemorySource directly. Let's try to get ourselves a mile-high view of Nuxt. Default is 20, max is 100. We focus only on the query aspect of the specification which is one of the most useful and flexible elements of OData. Describing Parameters In OpenAPI 3. So in our case the person element must map to a person field in the mojo. At that point, they can start creating the report and even reference these parameters from DAX expressions, such as the one in the following screenshot. The QueryString collection is used to retrieve the variable values in the HTTP query string. Note that they match the ones sent from the web browser. ServiceSource is very similar to MemorySource however instead of passing in the in-memory collection you want to query directly, you’ll need to pass a Request DTO of the Service you want called instead. To retrieve data from a database, you use queries. Sep 09, 2017 · If you log the parameters sent from the server on the get request, a blank value is output. Joe Donahue wrote:If, however, you have multiple possible values (which the query string supports, though rarely used) you would have to iterate through. The easiest and fastest way to get the value of query string in PHP is through $_GET predefined variables. DB::raw() is used to make arbitrary SQL commands which aren't parsed any further by the query builder. read_sql(query, con=con) # Loop Over Dataframe to Save Pickle Files for. These updates—requested by many of our customers—are available. Query parameters in Angular allow for passing optional parameters across any route in the application. Database Schema Posts Id int PostTypeId tinyint AcceptedAnswerId int ParentId int CreationDate datetime DeletionDate datetime Score int ViewCount. This form appears to. An example of a query could be: "get all data from the table 'people' sorted alphabetically" or "get names from the table 'people'". Authentication module for Nuxt. Web API parameters have to be filled in I_T_PARAMETER, click on the table icon: Here you can enter the parameters. js applications with Vue Router. After Query Parameters have been referenced from other queries as needed, users can hit "Close & Apply" in the Query Editor ribbon to get their data and parameters loaded into the data model. If a Single query returns null, Room will throw EmptyResultSetException. Parameters can be used by themselves or as part of a larger expression to form a criterion in the query. Your query parameters can be retrieved from the query object on the request object sent to your route. The only possible problem with this solution might be (depending on what you want) is that the redirect will only happen if both the beta and gamma query string variables are present in the query string. href ,每一次点击 a 标签后的页面,都会进行一次服务端渲染,和普通的 PHP 混合开发没有太大的区别。. For more information about creating parameter queries, see Microsoft Query Help or Connect to a web page (Power Query). If you are a subscriber and you are trying this from a console add 'X-TheySaidSo-Api-Secret' header and add your api key as the header value. We can also make our Power Query query parameterized by turning it into a function, which can take input parameters and use them within the. searchParams to make it easy to parse out the parameters from the querystring. json with the loader field. Note: The sort_column parameter can be used to sort the list of Pages by the descriptor of any field in the wp_post table of the WordPress database. There are some steps from the incoming request to a rendered page. Server-side keys. Query parsing: Data service receives a request, parses the headers to get the user-id and role, parses the body into a GraphQL AST. This RawQuerySet instance can be iterated over just like a normal QuerySet to provide object instances. In the Navigator window, double click the HumanResources. Web API parameters have to be filled in I_T_PARAMETER, click on the table icon: Here you can enter the parameters. node-postgres supports parameterized queries, passing your query text unaltered as well as your parameters to the PostgreSQL server where the parameters are safely substituted into the query with battle-tested parameter substitution code within the server itself. Crushing and grinding in quartz silica sand. When you use parameters with Request. query: the GROQ query itself; explain: whether to include the query execution plan as plain text in an explain field, which may be useful when optimizing slow queries. Hi, I am reading query parameters from incoming request inside API Management Policy and passing them as a header to my Logic App. Query Parameters. I tried this with setting build. x and Python 2. Here is the description of all the parameters used by this method − url − A string containing the URL to which the request is sent. Top ↑ More Information # More Information. Each have parameters that reflect this difference in implementation. Parameter A parameter is a piece of information you supply to a query right as you run it. version added: 1. Here we pass a String parameter from C# to Crystal Reports. A query is defined with variables. vue is transformed by Nuxt into /news/author/:name. Parameter sniffing is expected behavior and is normally desirable. (multiple statements separated by semi-colons are not allowed. Get the best deals on Aluminum Powder when you shop the largest online selection at Free shipping on many items Browse your New Listing 250g 88oz FLAKE 200 mesh Aluminum Powder Pyrotechnic 996 PURITY Ball Milled 2445 From Canada 1008 shipping Watch Aluminum Sulfate Powder 99 Min Purity 3 X 1lb Bottles Aluminum. Best Approach as of 2017 This is the best approach I've found as of 2017 in that it's simple, effective and flexible. Mapping Complex Objects. Query strings are great to pass in additional information to the server, however, there are some limits to the use of query strings: Query strings have a maximum length. Click Add to add a Context. Employee table. This is an example of a HTTP GET request using a query string. You can see this in the Raw page after you simulate the. query can get us. The account record ID is specified by the default id query string parameter, and the contact record ID is specified by the query string parameter named cid:. This is the only mandatory query parameter. And how you think and use those as best practice. Click on the OK button. Note: This implements ArrayAccess, and acts as an array of parameters when used in that manner. To do so, you first need an open database connection. If you require to get current URL with parameters in your codeigniter project then you can get easily using "url" helper. The account record ID is specified by the default id query string parameter, and the contact record ID is specified by the query string parameter named cid:. With this step by step guide, you will get a dynamic Nuxt. The parameter input is an array of cluster (Name, Data Type, Direction, Initial Value) where each array element represents a column or field in the database table. One of the questions I get quite frequently is how we can pass parameters to SQL queries, allowing us to make them dynamic. Most links are also HTTP GET requests, though there are some minor exceptions. The second specifies the value for that field. Not correct on both counts. When authenticating via query string parameters, you create the string to be signed by concatenating the request verb with canonicalized headers and the resource that the request is targeting. Authentication, Authorization, and Accounting (AAA) Parameters Created 2003-04-08 Last Updated 2019-08-28 Available Formats XML HTML Plain text. The function's parameters are handled identically to pg_query_params(). Viewed 16k times 5. Google in-fact attach a "gclid" parameter to the tracking link, this parameter is used in tracking results in Google Analytics; when you want to use UTM and record click's source in Google Analytics. In addition to the list-type parameter that indicates version 2 of the API, the request also specifies additional parameters to retrieve up to three keys in the quotes bucket that start with E and occur lexicographically after ExampleGuide. Parameters are named using the normal ROS naming convention. This isn’t really a query because it can only look in cache and never calls the remote service. My understanding is that "@SearchTerm" needs to be a part of the query string, and that the SQLParameter object provides a means for substituting the parameter name with it's actual value. Another method is to programmatically code a parameterized query by writing your T-SQL code a specific way and passing it to the sp_executesql system stored procedure. @PrimozRome When I first came across this problem, I thought the same. Most of the time you can find the information you want without actually dealing with the class internals and global variables. For example, suppose you want to add detail information about a specific contact to an Account page. 2, "Adding a New Parameter" Section 4. And register it on nuxt. js: Content hash to the file name so images can get cached on CDN level and in the browser for a long time. Auth Module. This is similar to urlparse(), but does not split the params from the URL. If Nuxt is used as a middleware, the request object might be different depending on the framework you're using. To perhaps oversimplify, if a query is called that is not in the cache, SQL server must compile it. I'd need to extend how. com - Examples ,The best For Learn web development Tutorials,Demo with Example!. jsによって「蔵書管理」システムを構築して解説したいと思います。 また、実際に構築. GET is one of the most common HTTP methods. Parameters of a resource method may be annotated with parameter-based annotations to extract information from a request. How do I get to it?. js provides dynamic routes for pages that don't have a fixed URL/slug. When operating in remote mode ReportViewer automatically prompts the user for parameter values unless told not to do so. It isn’t very widely known. Linq to Querystring is an expression parser for. This can help you avoid manually entering a list, or just having free text. The GET request appends data to the end of the URL in the form of a list of field=value pair which is known as query string. This should generally be used instead of urlparse() if the more recent URL syntax allowing parameters to be applied to each segment of the path portion of the URL (see RFC 2396) is wanted. My understanding is that "@SearchTerm" needs to be a part of the query string, and that the SQLParameter object provides a means for substituting the parameter name with it's actual value. No more hints, no more undocumented parameter, but parallel processing up to 16 threads on a 4 CPU server. That can get annoying, so why don’t we create a class to represent the parameters of that call? And since we’re looking at “requests” of information, that pattern is typically called a Query. You can query the table by using the get-item API. If you have more than one search parameter, you need to write a SQL statement and define multiple variables for it. Then select the From Database drop-down button, and select From SQL Server Database. For your requirement, you could use only one parameter which could be used in the query. Salaudeen Rajack's SharePoint Experiences! Home. Parameters can be used by themselves or as part of a larger expression to form a criterion in the query. If query_data is an object, then only public properties will be incorporated into the result. For example in first page you collect information about your client, her name and last name and use this information in your second page. 42 ATTENTION If any ponents of this unit are. How to access routing parameters in Vue. The headers used for request signing are the same as those for authorization header authentication, except that the Date field is replaced by the Expires parameter. If no resultType query parameter is used then the default maxRecordCount is always used. Hi all, I have a WebApi that has a Get method with parameter username and password. As Nuxt is building the router for us, this can be done instead on the component itself with beforeRouteEnter. So I scanned salesforce developer boards for the same, and found this solution that worked perfectly for me, thanks “mikef” for sharing this solution(can’t find your twitter profile ). js team has created scaffolding tool create-nuxt-app. use() and app. For the GET and QUERY functions, you can omit the -f parameter and specify the -G parameter to search a specific application group. what i want is get the month from the user input and get it as a parameter for the sql query go get the result. Joe Donahue wrote:If, however, you have multiple possible values (which the query string supports, though rarely used) you would have to iterate through. id {Number|String} - the id of the data to be retrieved by id from the store. I am facing a problem using FM RRW3_GET_QUERY_VIEW_DATA. If no parameter exists with the given name, null is returned. com - Examples ,The best For Learn web development Tutorials,Demo with Example!. Out of the above, the search_type, request_cache and the allow_partial_search_results settings must be passed as query-string parameters. In your scenario, the query is like: Select * from table where startdate = ? UNION select * from table2 where startdate = ?. Let us learn how to use query string parameters in ASP. -- Dynamic SQL with in / out parameters: sp_executeSQL system stored procedure supports input and output parameter usage. id available. Click on the OK button. JavaScript: How to Get Query String Parameter Value from Current Page URL oneTarek February 27, 2013 1 You can retrieve any query string value based on parameter name from the url of current page. To name a table select it and go to the Design tab and type in a new name under the Table Name: box. For simple cases, you can simply use the constructor with two parameters. This will exchange your User access token for a Page access token. When you work with PHP, you often need to pass variables from one page to another. Now there is a way to construct URL parameters interactively. Building a Parameter Table for Power Query Posted on November 26, 2014 by Ken Puls One of the things that I've complained about in the past is that there is no built-in way for Power Query to be able to pull up the path for the current workbook. Now, when you run the query, you will be prompted to enter the "start" date. The string parsing mechanism is ugly and old way of doing getting query string parameter values. By matching the conditions against the {QUERY_STRING} you can use back references to use them in the redirect URL. There is no simple solution that allows limiting the risk while still allowing feature developers to continue using query parameters on GET requests. Quite often, we need to know how many any particular objects have been executed on our server and what their execution plan is. To better define a parameter, you should specify it in the list of parameters. Rename the query to DimCustomer; You now need to create a parameter for the users. I want to get the full query that the jquery is calling. New in version 2. Son componentes Vue con algunos métodos más adicionados por Nuxt. There are four types of parameters: header parameters, path parameters, query string parameters, and request body parameters. In this example you can. Make sure to check out the Vue API query plugin by Robson Tenório which provides an advanced query builder for your API. Parameters can be used by themselves or as part of a larger expression to form a criterion in the query. It is specifically invalidated on line 388. The following steps use a new Word document. Query list is a list of values created in the blank query using M Language. There are six. Now days every server language provide direct method to get the URL parameters but this is not straight forward with jQuery. With React Router, you're able to declare dynamic routes using special URL parameters. I tried this with setting build. js will merge it with the component data. This lesson is about passing variables in a URL. Querying ElasticSearch - A Tutorial and Guide Posted on 01 July 2013 by Rufus Pollock ElasticSearch is a great open-source search tool that’s built on Lucene (like SOLR) but is natively JSON + RESTful. I afraid that we could not use OData query in Select query field of "Get user profile (V2)" action to get the specific field, if you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:. This is one of my go-to demos for showing off the Power Query Formula Language (M). You may have seen some forum posts showing how to filter a report with a URL query string parameter. I tried this with setting build. Add nuxt-module-auth0 to modules section of nuxt. Here we defined three actions, get, show, and set. If you'd like to get ALL parameters from ALL sources (including the URL path, query string, and parsed request body) you can use req. Here, there is no need to specify any available value or default value for these two parameters so that you can directly use calendar to select date time and filter tablix. getFromUrl(key). I could not find documentation demonstrating how to do this. Session resolution: The request hits the gateway which resolves the authorization key (if any) and adds the user-id and role headers and then proxies the request to the data service. search to get query string parameters in JavaScript. It must be the last argument in the parameter list. If your web query is dynamic (requests a parameter), the Parameters button becomes available in the Return External Data to Excel dialog box. I have the same dilemma - what's the best way to pass a json query object as a parameter. On the World Wide Web, a query string is the part of a uniform resource locator (URL) which assigns values to specified parameters. How to create a query that has parameters to evaluate complex criteria in Microsoft Access Content provided by Microsoft This article applies only to a Microsoft Access database (. This allows attackers to obtain sensitive data such as usernames, passwords, tokens (authX), database details, and any other potentially sensitive data. While query parameters are typically used in GET requests, it's still possible to see them in POST and DELETE requests, among others. It’s come to my attention that some people are confused about angular routing. Let me just say, that I am a complete novice with SQL/SSRS (but I'm trying to learn). If you submit an HTML form, you use a POST or PUT request. It will build a Static Generated Vue. slug // When calling /abc the slug will be "abc" return { slug } } } 监听 query 参数改变. The query requests return structured data in JSON format with an action and parameters for that action. inboundProperties['param-name']] returns null when using the HTTP Listener as provided in Mule 3. // Let the caller manage tracking it; the second parameter to. How do I retrieve the query parameters from a path? Ask Question Asked 2 years, 6 months ago. Any optional parameters should certainly be query string parameters. Hi all, I have a WebApi that has a Get method with parameter username and password. Bind application-level middleware to an instance of the app object by using the app. Get would fetch our entire car collection, and on success set the store with the list the server gives back. query object, or even req. parse method takes care of most of the heavy lifting for us. With this step by step guide, you will get a dynamic Nuxt. You can see this in the Raw page after you simulate the. cup ground red chili mild or hot 1 tsp ground cinnamon 8 cloves garlic pressed Grind the meat and fat through coarse grinder plate using the grinding instructions Add the onions garlic vinegar and seasonings use chili to taste Mix the ground meat and the seasonings then place in a covered bowl and refrigerate for at least one hour. The account record ID is specified by the default id query string parameter, and the contact record ID is specified by the query string parameter named cid:. In today's post, you will see small piece of code but really effective and useful. Waterloo Commandant Henry Lachouque - 1975 - Napoleonic History,Inktastic Sunday Without Gravy Infant Creeper Italian Food Funny Spaghetti Just,Xplorys Dooky Design Sonnensegel für Kinderwagen und Babyschale NEU. js will output an extra file that is the same as the index. The JSON API uses the following standard HTTP. The parameters of get_posts are similar to those of get_pages but are implemented quite differently, and should be used in appropriate scenarios. You may have seen some forum posts showing how to filter a report with a URL query string parameter. Dreamweaver inserts the SQL query in your page. js provides dynamic routes for pages that don't have a fixed URL/slug. Using URL parameters is probably the easiest way of passing variables from one webpage to the other. 18 and I have two layers: one layer is filled with lines which represent streets. Similarly, Query strings containing unsafe and non-ASCII characters are encoded as well. If the defined strings change, all component methods (asyncData, fetch, validate, layout, ) will be called. No more hints, no more undocumented parameter, but parallel processing up to 16 threads on a 4 CPU server. The only possible problem with this solution might be (depending on what you want) is that the redirect will only happen if both the beta and gamma query string variables are present in the query string. Here we defined three actions, get, show, and set. hook we are able to tell Nuxt to run a function when it hits a certain “hook”, which refers to a stage in its process.